- Timestamp:
- 12/07/2020 07:50:50 AM (5 years ago)
- Location:
- polylang
- Files:
-
- 2 deleted
- 3 edited
- 168 copied
-
tags/2.9 (copied) (copied from polylang/trunk)
-
tags/2.9/admin/admin-base.php (copied) (copied from polylang/trunk/admin/admin-base.php)
-
tags/2.9/admin/admin-block-editor.php (copied) (copied from polylang/trunk/admin/admin-block-editor.php)
-
tags/2.9/admin/admin-classic-editor.php (copied) (copied from polylang/trunk/admin/admin-classic-editor.php)
-
tags/2.9/admin/admin-filters-columns.php (copied) (copied from polylang/trunk/admin/admin-filters-columns.php)
-
tags/2.9/admin/admin-filters-media.php (copied) (copied from polylang/trunk/admin/admin-filters-media.php)
-
tags/2.9/admin/admin-filters-post-base.php (copied) (copied from polylang/trunk/admin/admin-filters-post-base.php)
-
tags/2.9/admin/admin-filters-post.php (copied) (copied from polylang/trunk/admin/admin-filters-post.php)
-
tags/2.9/admin/admin-filters-term.php (copied) (copied from polylang/trunk/admin/admin-filters-term.php)
-
tags/2.9/admin/admin-filters.php (copied) (copied from polylang/trunk/admin/admin-filters.php)
-
tags/2.9/admin/admin-links.php (copied) (copied from polylang/trunk/admin/admin-links.php)
-
tags/2.9/admin/admin-model.php (copied) (copied from polylang/trunk/admin/admin-model.php)
-
tags/2.9/admin/admin-nav-menu.php (copied) (copied from polylang/trunk/admin/admin-nav-menu.php)
-
tags/2.9/admin/admin-notices.php (copied) (copied from polylang/trunk/admin/admin-notices.php)
-
tags/2.9/admin/admin-static-pages.php (copied) (copied from polylang/trunk/admin/admin-static-pages.php)
-
tags/2.9/admin/admin-strings.php (copied) (copied from polylang/trunk/admin/admin-strings.php)
-
tags/2.9/admin/admin.php (copied) (copied from polylang/trunk/admin/admin.php)
-
tags/2.9/admin/view-translations-media.php (copied) (copied from polylang/trunk/admin/view-translations-media.php)
-
tags/2.9/admin/view-translations-post.php (copied) (copied from polylang/trunk/admin/view-translations-post.php)
-
tags/2.9/admin/view-translations-term.php (copied) (copied from polylang/trunk/admin/view-translations-term.php)
-
tags/2.9/changelog.txt (copied) (copied from polylang/trunk/changelog.txt)
-
tags/2.9/css/admin.css (copied) (copied from polylang/trunk/css/admin.css)
-
tags/2.9/css/admin.min.css (copied) (copied from polylang/trunk/css/admin.min.css)
-
tags/2.9/css/selectmenu.css (copied) (copied from polylang/trunk/css/selectmenu.css)
-
tags/2.9/css/selectmenu.min.css (copied) (copied from polylang/trunk/css/selectmenu.min.css)
-
tags/2.9/frontend/choose-lang-content.php (copied) (copied from polylang/trunk/frontend/choose-lang-content.php)
-
tags/2.9/frontend/choose-lang-domain.php (copied) (copied from polylang/trunk/frontend/choose-lang-domain.php)
-
tags/2.9/frontend/choose-lang-url.php (copied) (copied from polylang/trunk/frontend/choose-lang-url.php)
-
tags/2.9/frontend/choose-lang.php (copied) (copied from polylang/trunk/frontend/choose-lang.php)
-
tags/2.9/frontend/frontend-auto-translate.php (copied) (copied from polylang/trunk/frontend/frontend-auto-translate.php)
-
tags/2.9/frontend/frontend-filters-links.php (copied) (copied from polylang/trunk/frontend/frontend-filters-links.php)
-
tags/2.9/frontend/frontend-filters-search.php (copied) (copied from polylang/trunk/frontend/frontend-filters-search.php)
-
tags/2.9/frontend/frontend-filters.php (copied) (copied from polylang/trunk/frontend/frontend-filters.php)
-
tags/2.9/frontend/frontend-links.php (copied) (copied from polylang/trunk/frontend/frontend-links.php)
-
tags/2.9/frontend/frontend-nav-menu.php (copied) (copied from polylang/trunk/frontend/frontend-nav-menu.php)
-
tags/2.9/frontend/frontend-static-pages.php (copied) (copied from polylang/trunk/frontend/frontend-static-pages.php)
-
tags/2.9/frontend/frontend.php (copied) (copied from polylang/trunk/frontend/frontend.php)
-
tags/2.9/include/api.php (copied) (copied from polylang/trunk/include/api.php)
-
tags/2.9/include/base.php (copied) (copied from polylang/trunk/include/base.php)
-
tags/2.9/include/cache.php (copied) (copied from polylang/trunk/include/cache.php)
-
tags/2.9/include/class-polylang.php (copied) (copied from polylang/trunk/include/class-polylang.php)
-
tags/2.9/include/cookie.php (copied) (copied from polylang/trunk/include/cookie.php)
-
tags/2.9/include/crud-posts.php (copied) (copied from polylang/trunk/include/crud-posts.php)
-
tags/2.9/include/crud-terms.php (copied) (copied from polylang/trunk/include/crud-terms.php)
-
tags/2.9/include/filters-links.php (copied) (copied from polylang/trunk/include/filters-links.php)
-
tags/2.9/include/filters-sanitization.php (copied) (copied from polylang/trunk/include/filters-sanitization.php)
-
tags/2.9/include/filters.php (copied) (copied from polylang/trunk/include/filters.php)
-
tags/2.9/include/functions.php (copied) (copied from polylang/trunk/include/functions.php)
-
tags/2.9/include/language.php (copied) (copied from polylang/trunk/include/language.php)
-
tags/2.9/include/license.php (copied) (copied from polylang/trunk/include/license.php)
-
tags/2.9/include/links-abstract-domain.php (copied) (copied from polylang/trunk/include/links-abstract-domain.php)
-
tags/2.9/include/links-default.php (copied) (copied from polylang/trunk/include/links-default.php)
-
tags/2.9/include/links-directory.php (copied) (copied from polylang/trunk/include/links-directory.php)
-
tags/2.9/include/links-domain.php (copied) (copied from polylang/trunk/include/links-domain.php)
-
tags/2.9/include/links-model.php (copied) (copied from polylang/trunk/include/links-model.php)
-
tags/2.9/include/links-permalinks.php (copied) (copied from polylang/trunk/include/links-permalinks.php)
-
tags/2.9/include/links-subdomain.php (copied) (copied from polylang/trunk/include/links-subdomain.php)
-
tags/2.9/include/links.php (copied) (copied from polylang/trunk/include/links.php)
-
tags/2.9/include/mo.php (copied) (copied from polylang/trunk/include/mo.php)
-
tags/2.9/include/model.php (copied) (copied from polylang/trunk/include/model.php)
-
tags/2.9/include/nav-menu.php (copied) (copied from polylang/trunk/include/nav-menu.php)
-
tags/2.9/include/olt-manager.php (copied) (copied from polylang/trunk/include/olt-manager.php)
-
tags/2.9/include/pointer.php (copied) (copied from polylang/trunk/include/pointer.php)
-
tags/2.9/include/query.php (copied) (copied from polylang/trunk/include/query.php)
-
tags/2.9/include/rest-request.php (copied) (copied from polylang/trunk/include/rest-request.php)
-
tags/2.9/include/static-pages.php (copied) (copied from polylang/trunk/include/static-pages.php)
-
tags/2.9/include/switcher.php (copied) (copied from polylang/trunk/include/switcher.php)
-
tags/2.9/include/translate-option.php (copied) (copied from polylang/trunk/include/translate-option.php) (2 diffs)
-
tags/2.9/include/translated-object.php (copied) (copied from polylang/trunk/include/translated-object.php)
-
tags/2.9/include/translated-post.php (copied) (copied from polylang/trunk/include/translated-post.php)
-
tags/2.9/include/translated-term.php (copied) (copied from polylang/trunk/include/translated-term.php)
-
tags/2.9/include/walker-dropdown.php (copied) (copied from polylang/trunk/include/walker-dropdown.php)
-
tags/2.9/include/walker-list.php (copied) (copied from polylang/trunk/include/walker-list.php)
-
tags/2.9/include/widget-calendar.php (copied) (copied from polylang/trunk/include/widget-calendar.php)
-
tags/2.9/include/widget-languages.php (copied) (copied from polylang/trunk/include/widget-languages.php)
-
tags/2.9/install/install-base.php (copied) (copied from polylang/trunk/install/install-base.php)
-
tags/2.9/install/install.php (copied) (copied from polylang/trunk/install/install.php)
-
tags/2.9/install/plugin-updater.php (copied) (copied from polylang/trunk/install/plugin-updater.php)
-
tags/2.9/install/t15s.php (copied) (copied from polylang/trunk/install/t15s.php)
-
tags/2.9/install/upgrade.php (copied) (copied from polylang/trunk/install/upgrade.php)
-
tags/2.9/integrations (copied) (copied from polylang/trunk/integrations)
-
tags/2.9/integrations/cache/cache-compat.php (copied) (copied from polylang/trunk/integrations/cache/cache-compat.php)
-
tags/2.9/integrations/domain-mapping/domain-mapping.php (copied) (copied from polylang/trunk/integrations/domain-mapping/domain-mapping.php)
-
tags/2.9/integrations/duplicate-post/duplicate-post.php (copied) (copied from polylang/trunk/integrations/duplicate-post/duplicate-post.php)
-
tags/2.9/integrations/integrations.php (copied) (copied from polylang/trunk/integrations/integrations.php)
-
tags/2.9/integrations/jetpack/jetpack.php (copied) (copied from polylang/trunk/integrations/jetpack/jetpack.php)
-
tags/2.9/integrations/twenty-seventeen/twenty-seven-teen.php (copied) (copied from polylang/trunk/integrations/twenty-seventeen/twenty-seven-teen.php)
-
tags/2.9/integrations/wp-sweep/wp-sweep.php (copied) (copied from polylang/trunk/integrations/wp-sweep/wp-sweep.php)
-
tags/2.9/integrations/wpseo/wpseo.php (copied) (copied from polylang/trunk/integrations/wpseo/wpseo.php)
-
tags/2.9/js/admin.js (copied) (copied from polylang/trunk/js/admin.js)
-
tags/2.9/js/admin.min.js (copied) (copied from polylang/trunk/js/admin.min.js)
-
tags/2.9/js/block-editor.js (copied) (copied from polylang/trunk/js/block-editor.js)
-
tags/2.9/js/block-editor.min.js (copied) (copied from polylang/trunk/js/block-editor.min.js)
-
tags/2.9/js/classic-editor.js (copied) (copied from polylang/trunk/js/classic-editor.js)
-
tags/2.9/js/classic-editor.min.js (copied) (copied from polylang/trunk/js/classic-editor.min.js)
-
tags/2.9/js/nav-menu.js (copied) (copied from polylang/trunk/js/nav-menu.js)
-
tags/2.9/js/nav-menu.min.js (copied) (copied from polylang/trunk/js/nav-menu.min.js)
-
tags/2.9/js/post.js (copied) (copied from polylang/trunk/js/post.js)
-
tags/2.9/js/post.min.js (copied) (copied from polylang/trunk/js/post.min.js)
-
tags/2.9/js/term.js (copied) (copied from polylang/trunk/js/term.js)
-
tags/2.9/js/term.min.js (copied) (copied from polylang/trunk/js/term.min.js)
-
tags/2.9/js/user.js (copied) (copied from polylang/trunk/js/user.js)
-
tags/2.9/js/user.min.js (copied) (copied from polylang/trunk/js/user.min.js)
-
tags/2.9/js/widgets.js (copied) (copied from polylang/trunk/js/widgets.js)
-
tags/2.9/js/widgets.min.js (copied) (copied from polylang/trunk/js/widgets.min.js)
-
tags/2.9/lingotek (deleted)
-
tags/2.9/modules/lingotek (copied) (copied from polylang/trunk/modules/lingotek)
-
tags/2.9/modules/plugins (deleted)
-
tags/2.9/modules/share-slug/load.php (copied) (copied from polylang/trunk/modules/share-slug/load.php)
-
tags/2.9/modules/share-slug/settings-share-slug.php (copied) (copied from polylang/trunk/modules/share-slug/settings-share-slug.php)
-
tags/2.9/modules/site-health (copied) (copied from polylang/trunk/modules/site-health)
-
tags/2.9/modules/site-health/admin-site-health.php (copied) (copied from polylang/trunk/modules/site-health/admin-site-health.php)
-
tags/2.9/modules/site-health/load.php (copied) (copied from polylang/trunk/modules/site-health/load.php)
-
tags/2.9/modules/sitemaps (copied) (copied from polylang/trunk/modules/sitemaps)
-
tags/2.9/modules/sitemaps/multilingual-sitemaps-provider.php (copied) (copied from polylang/trunk/modules/sitemaps/multilingual-sitemaps-provider.php)
-
tags/2.9/modules/sitemaps/sitemaps.php (copied) (copied from polylang/trunk/modules/sitemaps/sitemaps.php)
-
tags/2.9/modules/sync/admin-sync.php (copied) (copied from polylang/trunk/modules/sync/admin-sync.php)
-
tags/2.9/modules/sync/load.php (copied) (copied from polylang/trunk/modules/sync/load.php)
-
tags/2.9/modules/sync/settings-sync.php (copied) (copied from polylang/trunk/modules/sync/settings-sync.php)
-
tags/2.9/modules/sync/sync-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-metas.php)
-
tags/2.9/modules/sync/sync-post-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-post-metas.php)
-
tags/2.9/modules/sync/sync-tax.php (copied) (copied from polylang/trunk/modules/sync/sync-tax.php)
-
tags/2.9/modules/sync/sync-term-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-term-metas.php)
-
tags/2.9/modules/sync/sync.php (copied) (copied from polylang/trunk/modules/sync/sync.php)
-
tags/2.9/modules/translate-slugs/load.php (copied) (copied from polylang/trunk/modules/translate-slugs/load.php)
-
tags/2.9/modules/translate-slugs/settings-translate-slugs.php (copied) (copied from polylang/trunk/modules/translate-slugs/settings-translate-slugs.php)
-
tags/2.9/modules/wizard/html-wizard-notice.php (copied) (copied from polylang/trunk/modules/wizard/html-wizard-notice.php)
-
tags/2.9/modules/wizard/js/languages-step.js (copied) (copied from polylang/trunk/modules/wizard/js/languages-step.js)
-
tags/2.9/modules/wizard/js/languages-step.min.js (copied) (copied from polylang/trunk/modules/wizard/js/languages-step.min.js)
-
tags/2.9/modules/wizard/load.php (copied) (copied from polylang/trunk/modules/wizard/load.php)
-
tags/2.9/modules/wizard/view-wizard-page.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-page.php)
-
tags/2.9/modules/wizard/view-wizard-step-home-page.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-home-page.php)
-
tags/2.9/modules/wizard/view-wizard-step-languages.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-languages.php)
-
tags/2.9/modules/wizard/view-wizard-step-last.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-last.php)
-
tags/2.9/modules/wizard/view-wizard-step-licenses.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-licenses.php)
-
tags/2.9/modules/wizard/view-wizard-step-media.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-media.php)
-
tags/2.9/modules/wizard/view-wizard-step-untranslated-contents.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-untranslated-contents.php)
-
tags/2.9/modules/wizard/wizard.php (copied) (copied from polylang/trunk/modules/wizard/wizard.php)
-
tags/2.9/modules/wpml/load.php (copied) (copied from polylang/trunk/modules/wpml/load.php)
-
tags/2.9/modules/wpml/settings-wpml.php (copied) (copied from polylang/trunk/modules/wpml/settings-wpml.php)
-
tags/2.9/modules/wpml/wpml-api.php (copied) (copied from polylang/trunk/modules/wpml/wpml-api.php)
-
tags/2.9/modules/wpml/wpml-compat.php (copied) (copied from polylang/trunk/modules/wpml/wpml-compat.php)
-
tags/2.9/modules/wpml/wpml-config.php (copied) (copied from polylang/trunk/modules/wpml/wpml-config.php)
-
tags/2.9/modules/wpml/wpml-legacy-api.php (copied) (copied from polylang/trunk/modules/wpml/wpml-legacy-api.php)
-
tags/2.9/polylang.php (copied) (copied from polylang/trunk/polylang.php) (2 diffs)
-
tags/2.9/readme.txt (copied) (copied from polylang/trunk/readme.txt) (2 diffs)
-
tags/2.9/settings/flags.php (copied) (copied from polylang/trunk/settings/flags.php)
-
tags/2.9/settings/languages.php (copied) (copied from polylang/trunk/settings/languages.php)
-
tags/2.9/settings/settings-browser.php (copied) (copied from polylang/trunk/settings/settings-browser.php)
-
tags/2.9/settings/settings-cpt.php (copied) (copied from polylang/trunk/settings/settings-cpt.php)
-
tags/2.9/settings/settings-licenses.php (copied) (copied from polylang/trunk/settings/settings-licenses.php)
-
tags/2.9/settings/settings-media.php (copied) (copied from polylang/trunk/settings/settings-media.php)
-
tags/2.9/settings/settings-module.php (copied) (copied from polylang/trunk/settings/settings-module.php)
-
tags/2.9/settings/settings-url.php (copied) (copied from polylang/trunk/settings/settings-url.php)
-
tags/2.9/settings/settings.php (copied) (copied from polylang/trunk/settings/settings.php)
-
tags/2.9/settings/table-languages.php (copied) (copied from polylang/trunk/settings/table-languages.php)
-
tags/2.9/settings/table-settings.php (copied) (copied from polylang/trunk/settings/table-settings.php)
-
tags/2.9/settings/table-string.php (copied) (copied from polylang/trunk/settings/table-string.php)
-
tags/2.9/settings/view-about.php (copied) (copied from polylang/trunk/settings/view-about.php)
-
tags/2.9/settings/view-languages.php (copied) (copied from polylang/trunk/settings/view-languages.php)
-
tags/2.9/settings/view-tab-lang.php (copied) (copied from polylang/trunk/settings/view-tab-lang.php)
-
tags/2.9/settings/view-tab-settings.php (copied) (copied from polylang/trunk/settings/view-tab-settings.php)
-
tags/2.9/settings/view-tab-strings.php (copied) (copied from polylang/trunk/settings/view-tab-strings.php)
-
tags/2.9/uninstall.php (copied) (copied from polylang/trunk/uninstall.php)
-
tags/2.9/vendor (copied) (copied from polylang/trunk/vendor)
-
tags/2.9/vendor/autoload.php (copied) (copied from polylang/trunk/vendor/autoload.php)
-
tags/2.9/vendor/composer/ClassLoader.php (copied) (copied from polylang/trunk/vendor/composer/ClassLoader.php)
-
tags/2.9/vendor/composer/autoload_classmap.php (copied) (copied from polylang/trunk/vendor/composer/autoload_classmap.php)
-
tags/2.9/vendor/composer/autoload_real.php (copied) (copied from polylang/trunk/vendor/composer/autoload_real.php)
-
tags/2.9/vendor/composer/autoload_static.php (copied) (copied from polylang/trunk/vendor/composer/autoload_static.php)
-
trunk/include/translate-option.php (modified) (2 diffs)
-
trunk/polylang.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
polylang/tags/2.9/include/translate-option.php
r2424335 r2432923 276 276 $pattern = '#^' . str_replace( '*', '(?:.+)', $name ) . '$#'; 277 277 278 foreach ( array_keys( $values ) as $n) {278 foreach ( $values as $n => $value ) { 279 279 // The first case could be handled by the next one, but we avoid calls to preg_match here. 280 280 if ( '*' === $name || ( false !== strpos( $name, '*' ) && preg_match( $pattern, $n ) ) ) { 281 if ( is_array( $values ) && is_array( $old_values ) && isset( $old_values[ $n ] , $values[ $n ]) ) {282 $values[ $n ] = $this->check_value_recursive( $old_values[ $n ], $value s[ $n ], $child );281 if ( is_array( $values ) && is_array( $old_values ) && isset( $old_values[ $n ] ) ) { 282 $values[ $n ] = $this->check_value_recursive( $old_values[ $n ], $value, $child ); 283 283 } 284 284 285 if ( is_object( $values ) && is_object( $old_values ) && isset( $old_values->$n , $values->$n) ) {286 $values->$n = $this->check_value_recursive( $old_values->$n, $value s->$n, $child );285 if ( is_object( $values ) && is_object( $old_values ) && isset( $old_values->$n ) ) { 286 $values->$n = $this->check_value_recursive( $old_values->$n, $value, $child ); 287 287 } 288 288 } … … 291 291 } else { 292 292 // Parent key is a wildcard and no sub-key has been whitelisted. 293 foreach ( array_keys( $values ) as $n) {294 if ( is_array( $values ) && is_array( $old_values ) && isset( $old_values[ $n ] , $values[ $n ]) ) {295 $values[ $n ] = $this->check_value_recursive( $old_values[ $n ], $value s[ $n ], $child);296 } 297 298 if ( is_object( $values ) && is_object( $old_values ) && isset( $old_values->$n , $values->$n) ) {299 $values->$n = $this->check_value_recursive( $old_values->$n, $value s->$n, $child);293 foreach ( $values as $n => $value ) { 294 if ( is_array( $values ) && is_array( $old_values ) && isset( $old_values[ $n ] ) ) { 295 $values[ $n ] = $this->check_value_recursive( $old_values[ $n ], $value, $key ); 296 } 297 298 if ( is_object( $values ) && is_object( $old_values ) && isset( $old_values->$n ) ) { 299 $values->$n = $this->check_value_recursive( $old_values->$n, $value, $key ); 300 300 } 301 301 } -
polylang/tags/2.9/polylang.php
r2430247 r2432923 11 11 * Plugin URI: https://polylang.pro 12 12 * Description: Adds multilingual capability to WordPress 13 * Version: 2.9 -rc113 * Version: 2.9 14 14 * Requires at least: 5.1 15 15 * Requires PHP: 5.6 … … 54 54 } else { 55 55 // Go on loading the plugin 56 define( 'POLYLANG_VERSION', '2.9 -rc1' );56 define( 'POLYLANG_VERSION', '2.9' ); 57 57 define( 'PLL_MIN_WP_VERSION', '5.1' ); 58 58 define( 'PLL_MIN_PHP_VERSION', '5.6' ); -
polylang/tags/2.9/readme.txt
r2430247 r2432923 6 6 Tested up to: 5.6 7 7 Requires PHP: 5.6 8 Stable tag: 2. 8.48 Stable tag: 2.9 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 79 79 == Changelog == 80 80 81 = 2.9 =81 = 2.9 (2020-12-07) = 82 82 83 83 * Add compatibility with WordPress 5.6 -
polylang/trunk/include/translate-option.php
r2424335 r2432923 276 276 $pattern = '#^' . str_replace( '*', '(?:.+)', $name ) . '$#'; 277 277 278 foreach ( array_keys( $values ) as $n) {278 foreach ( $values as $n => $value ) { 279 279 // The first case could be handled by the next one, but we avoid calls to preg_match here. 280 280 if ( '*' === $name || ( false !== strpos( $name, '*' ) && preg_match( $pattern, $n ) ) ) { 281 if ( is_array( $values ) && is_array( $old_values ) && isset( $old_values[ $n ] , $values[ $n ]) ) {282 $values[ $n ] = $this->check_value_recursive( $old_values[ $n ], $value s[ $n ], $child );281 if ( is_array( $values ) && is_array( $old_values ) && isset( $old_values[ $n ] ) ) { 282 $values[ $n ] = $this->check_value_recursive( $old_values[ $n ], $value, $child ); 283 283 } 284 284 285 if ( is_object( $values ) && is_object( $old_values ) && isset( $old_values->$n , $values->$n) ) {286 $values->$n = $this->check_value_recursive( $old_values->$n, $value s->$n, $child );285 if ( is_object( $values ) && is_object( $old_values ) && isset( $old_values->$n ) ) { 286 $values->$n = $this->check_value_recursive( $old_values->$n, $value, $child ); 287 287 } 288 288 } … … 291 291 } else { 292 292 // Parent key is a wildcard and no sub-key has been whitelisted. 293 foreach ( array_keys( $values ) as $n) {294 if ( is_array( $values ) && is_array( $old_values ) && isset( $old_values[ $n ] , $values[ $n ]) ) {295 $values[ $n ] = $this->check_value_recursive( $old_values[ $n ], $value s[ $n ], $child);296 } 297 298 if ( is_object( $values ) && is_object( $old_values ) && isset( $old_values->$n , $values->$n) ) {299 $values->$n = $this->check_value_recursive( $old_values->$n, $value s->$n, $child);293 foreach ( $values as $n => $value ) { 294 if ( is_array( $values ) && is_array( $old_values ) && isset( $old_values[ $n ] ) ) { 295 $values[ $n ] = $this->check_value_recursive( $old_values[ $n ], $value, $key ); 296 } 297 298 if ( is_object( $values ) && is_object( $old_values ) && isset( $old_values->$n ) ) { 299 $values->$n = $this->check_value_recursive( $old_values->$n, $value, $key ); 300 300 } 301 301 } -
polylang/trunk/polylang.php
r2430247 r2432923 11 11 * Plugin URI: https://polylang.pro 12 12 * Description: Adds multilingual capability to WordPress 13 * Version: 2.9 -rc113 * Version: 2.9 14 14 * Requires at least: 5.1 15 15 * Requires PHP: 5.6 … … 54 54 } else { 55 55 // Go on loading the plugin 56 define( 'POLYLANG_VERSION', '2.9 -rc1' );56 define( 'POLYLANG_VERSION', '2.9' ); 57 57 define( 'PLL_MIN_WP_VERSION', '5.1' ); 58 58 define( 'PLL_MIN_PHP_VERSION', '5.6' ); -
polylang/trunk/readme.txt
r2430247 r2432923 6 6 Tested up to: 5.6 7 7 Requires PHP: 5.6 8 Stable tag: 2. 8.48 Stable tag: 2.9 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 79 79 == Changelog == 80 80 81 = 2.9 =81 = 2.9 (2020-12-07) = 82 82 83 83 * Add compatibility with WordPress 5.6
Note: See TracChangeset
for help on using the changeset viewer.