Changeset 3134117
- Timestamp:
- 08/12/2024 10:44:53 AM (19 months ago)
- Location:
- dynamicconditions
- Files:
-
- 65 added
- 4 edited
-
tags/1.7.3 (added)
-
tags/1.7.3/Admin (added)
-
tags/1.7.3/Admin/DynamicConditionsAdmin.php (added)
-
tags/1.7.3/Admin/css (added)
-
tags/1.7.3/Admin/css/dynamic-conditions-admin.css (added)
-
tags/1.7.3/Admin/index.php (added)
-
tags/1.7.3/Admin/js (added)
-
tags/1.7.3/Admin/js/dynamic-conditions-admin.js (added)
-
tags/1.7.3/Admin/js/index.php (added)
-
tags/1.7.3/Admin/partials (added)
-
tags/1.7.3/Admin/partials/dynamic-conditions-admin-display.php (added)
-
tags/1.7.3/Admin/partials/index.php (added)
-
tags/1.7.3/LICENSE.txt (added)
-
tags/1.7.3/Legacy (added)
-
tags/1.7.3/Legacy/Lib (added)
-
tags/1.7.3/Legacy/Lib/DynamicConditionsDate.php (added)
-
tags/1.7.3/Legacy/Lib/index.php (added)
-
tags/1.7.3/Legacy/WeakMap_Fallback.php (added)
-
tags/1.7.3/Legacy/index.php (added)
-
tags/1.7.3/Lib (added)
-
tags/1.7.3/Lib/Activator.php (added)
-
tags/1.7.3/Lib/Date.php (added)
-
tags/1.7.3/Lib/Deactivator.php (added)
-
tags/1.7.3/Lib/DynamicConditions.php (added)
-
tags/1.7.3/Lib/DynamicTags (added)
-
tags/1.7.3/Lib/DynamicTags/NumberPostsTag.php (added)
-
tags/1.7.3/Lib/DynamicTags/index.php (added)
-
tags/1.7.3/Lib/I18n.php (added)
-
tags/1.7.3/Lib/Loader.php (added)
-
tags/1.7.3/Lib/index.php (added)
-
tags/1.7.3/Public (added)
-
tags/1.7.3/Public/DynamicConditionsPublic.php (added)
-
tags/1.7.3/Public/css (added)
-
tags/1.7.3/Public/css/debug.css (added)
-
tags/1.7.3/Public/css/dynamic-conditions-public.css (added)
-
tags/1.7.3/Public/css/index.php (added)
-
tags/1.7.3/Public/index.php (added)
-
tags/1.7.3/Public/js (added)
-
tags/1.7.3/Public/js/dynamic-conditions-public.js (added)
-
tags/1.7.3/Public/js/index.php (added)
-
tags/1.7.3/Public/partials (added)
-
tags/1.7.3/Public/partials/debug.php (added)
-
tags/1.7.3/Public/partials/dynamic-conditions-public-display.php (added)
-
tags/1.7.3/Public/partials/index.php (added)
-
tags/1.7.3/README.txt (added)
-
tags/1.7.3/composer.json (added)
-
tags/1.7.3/dynamic-conditions.php (added)
-
tags/1.7.3/index.php (added)
-
tags/1.7.3/languages (added)
-
tags/1.7.3/languages/dynamicconditions-de_DE.mo (added)
-
tags/1.7.3/languages/dynamicconditions-de_DE.po (added)
-
tags/1.7.3/languages/dynamicconditions.pot (added)
-
tags/1.7.3/languages/index.php (added)
-
tags/1.7.3/uninstall.php (added)
-
tags/1.7.3/vendor (added)
-
tags/1.7.3/vendor/autoload.php (added)
-
tags/1.7.3/vendor/composer (added)
-
tags/1.7.3/vendor/composer/ClassLoader.php (added)
-
tags/1.7.3/vendor/composer/LICENSE (added)
-
tags/1.7.3/vendor/composer/autoload_classmap.php (added)
-
tags/1.7.3/vendor/composer/autoload_namespaces.php (added)
-
tags/1.7.3/vendor/composer/autoload_psr4.php (added)
-
tags/1.7.3/vendor/composer/autoload_real.php (added)
-
tags/1.7.3/vendor/composer/autoload_static.php (added)
-
tags/1.7.3/vendor/composer/installed.json (added)
-
trunk/Legacy/WeakMap_Fallback.php (modified) (1 diff)
-
trunk/Public/DynamicConditionsPublic.php (modified) (5 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/dynamic-conditions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dynamicconditions/trunk/Legacy/WeakMap_Fallback.php
r3133362 r3134117 1 1 <?php 2 3 if (!class_exists('WeakMap')) {4 final class WeakMap implements ArrayAccess, Countable, IteratorAggregate {5 private array $storage = [];6 7 public function offsetExists($offset): bool {8 return isset($this->storage[spl_object_id($offset)]);9 }10 11 /**12 * @param mixed $offset13 * @return mixed|null14 */15 public function offsetGet( $offset) {16 return $this->storage[spl_object_id($offset)] ?? null;17 }18 19 public function offsetSet($offset, $value): void {20 $this->storage[spl_object_id($offset)] = $value;21 }22 23 public function offsetUnset($offset): void {24 unset($this->storage[spl_object_id($offset)]);25 }26 27 public function count(): int {28 return count($this->storage);29 }30 31 public function getIterator(): Traversable {32 foreach ($this->storage as $key => $value) {33 yield $key => $value;34 }35 }36 }37 } -
dynamicconditions/trunk/Public/DynamicConditionsPublic.php
r3133362 r3134117 302 302 303 303 //prevent shortcodes from execution 304 $this->shortcodeTags += $GLOBALS['shortcode_tags'];304 $this->shortcodeTags = $GLOBALS['shortcode_tags']; 305 305 $GLOBALS['shortcode_tags'] = []; 306 306 … … 309 309 'isHidden' => true, 310 310 'settings' => $settings, 311 'ob_level' =>ob_get_level(),311 #'ob_level' => ob_get_level(), 312 312 ]; 313 313 } … … 325 325 } 326 326 327 while (ob_get_level() > $this->widgetCache[$section->get_id()]['ob_level']) {327 /*while ( ob_get_level() > $this->widgetCache[$section->get_id()]['ob_level'] ) { 328 328 ob_end_flush(); 329 } 329 }*/ 330 330 331 331 $content = ob_get_clean(); … … 373 373 374 374 if ( $this->getMode() === 'edit' ) { 375 return false; 376 } 377 if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST') { 375 378 return false; 376 379 } … … 660 663 /** 661 664 * Parse shortcode if active 662 */ 663 private function parseShortcode( ?string $value, array $settings = [] ): ?string { 665 * @return mixed 666 */ 667 private function parseShortcode( $value, array $settings = [] ) { 668 if ( !is_string( $value ) ) { 669 return $value; 670 } 664 671 if ( empty( $settings['dynamicconditions_parse_shortcodes'] ) ) { 665 672 return $value; -
dynamicconditions/trunk/README.txt
r3133363 r3134117 6 6 Requires PHP: 7.4 7 7 Tested up to: 6.6 8 Stable tag: 1.7. 28 Stable tag: 1.7.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 66 66 67 67 == Changelog == 68 = 1.7.3 = 69 * Fix issue with date-conditions 70 68 71 = 1.7.2 = 69 72 * Fix issue with broken layout caused by weakmap and ob_cache -
dynamicconditions/trunk/dynamic-conditions.php
r3133362 r3134117 23 23 * Plugin URI: https://github.com/RTO-Websites/dynamic-conditions 24 24 * Description: Activates conditions for dynamic tags to show/hides a widget. 25 * Version: 1.7. 225 * Version: 1.7.3 26 26 * Author: RTO GmbH 27 27 * Author URI: https://www.rto.de … … 37 37 } 38 38 39 define( 'DynamicConditions_VERSION', '1.7. 2' );39 define( 'DynamicConditions_VERSION', '1.7.3' ); 40 40 41 41 define( 'DynamicConditions_DIR', str_replace( '\\', '/', __DIR__ ) );
Note: See TracChangeset
for help on using the changeset viewer.