- Timestamp:
- 04/09/2024 08:07:50 AM (2 years ago)
- Location:
- polylang
- Files:
-
- 9 edited
- 166 copied
-
tags/3.6.1 (copied) (copied from polylang/trunk)
-
tags/3.6.1/admin/admin-base.php (copied) (copied from polylang/trunk/admin/admin-base.php)
-
tags/3.6.1/admin/admin-block-editor.php (copied) (copied from polylang/trunk/admin/admin-block-editor.php)
-
tags/3.6.1/admin/admin-classic-editor.php (copied) (copied from polylang/trunk/admin/admin-classic-editor.php)
-
tags/3.6.1/admin/admin-default-term.php (copied) (copied from polylang/trunk/admin/admin-default-term.php)
-
tags/3.6.1/admin/admin-filters-columns.php (copied) (copied from polylang/trunk/admin/admin-filters-columns.php)
-
tags/3.6.1/admin/admin-filters-media.php (copied) (copied from polylang/trunk/admin/admin-filters-media.php)
-
tags/3.6.1/admin/admin-filters-post-base.php (copied) (copied from polylang/trunk/admin/admin-filters-post-base.php)
-
tags/3.6.1/admin/admin-filters-post.php (copied) (copied from polylang/trunk/admin/admin-filters-post.php)
-
tags/3.6.1/admin/admin-filters-term.php (copied) (copied from polylang/trunk/admin/admin-filters-term.php)
-
tags/3.6.1/admin/admin-filters-widgets-options.php (copied) (copied from polylang/trunk/admin/admin-filters-widgets-options.php)
-
tags/3.6.1/admin/admin-filters.php (copied) (copied from polylang/trunk/admin/admin-filters.php)
-
tags/3.6.1/admin/admin-model.php (copied) (copied from polylang/trunk/admin/admin-model.php)
-
tags/3.6.1/admin/admin-nav-menu.php (copied) (copied from polylang/trunk/admin/admin-nav-menu.php)
-
tags/3.6.1/admin/admin-notices.php (copied) (copied from polylang/trunk/admin/admin-notices.php)
-
tags/3.6.1/admin/admin-static-pages.php (copied) (copied from polylang/trunk/admin/admin-static-pages.php)
-
tags/3.6.1/admin/view-translations-media.php (copied) (copied from polylang/trunk/admin/view-translations-media.php)
-
tags/3.6.1/admin/view-translations-post.php (copied) (copied from polylang/trunk/admin/view-translations-post.php)
-
tags/3.6.1/admin/view-translations-term.php (copied) (copied from polylang/trunk/admin/view-translations-term.php)
-
tags/3.6.1/changelog.txt (copied) (copied from polylang/trunk/changelog.txt)
-
tags/3.6.1/css/build/admin.css (copied) (copied from polylang/trunk/css/build/admin.css)
-
tags/3.6.1/css/build/admin.min.css (copied) (copied from polylang/trunk/css/build/admin.min.css)
-
tags/3.6.1/css/build/wizard.min.css (copied) (copied from polylang/trunk/css/build/wizard.min.css)
-
tags/3.6.1/frontend/accept-languages-collection.php (copied) (copied from polylang/trunk/frontend/accept-languages-collection.php)
-
tags/3.6.1/frontend/canonical.php (copied) (copied from polylang/trunk/frontend/canonical.php)
-
tags/3.6.1/frontend/choose-lang-content.php (copied) (copied from polylang/trunk/frontend/choose-lang-content.php)
-
tags/3.6.1/frontend/choose-lang.php (copied) (copied from polylang/trunk/frontend/choose-lang.php)
-
tags/3.6.1/frontend/frontend-auto-translate.php (copied) (copied from polylang/trunk/frontend/frontend-auto-translate.php)
-
tags/3.6.1/frontend/frontend-filters-links.php (copied) (copied from polylang/trunk/frontend/frontend-filters-links.php)
-
tags/3.6.1/frontend/frontend-filters-search.php (copied) (copied from polylang/trunk/frontend/frontend-filters-search.php) (1 diff)
-
tags/3.6.1/frontend/frontend-filters-widgets.php (copied) (copied from polylang/trunk/frontend/frontend-filters-widgets.php)
-
tags/3.6.1/frontend/frontend-filters.php (copied) (copied from polylang/trunk/frontend/frontend-filters.php)
-
tags/3.6.1/frontend/frontend-links.php (copied) (copied from polylang/trunk/frontend/frontend-links.php)
-
tags/3.6.1/frontend/frontend-nav-menu.php (copied) (copied from polylang/trunk/frontend/frontend-nav-menu.php)
-
tags/3.6.1/frontend/frontend-static-pages.php (copied) (copied from polylang/trunk/frontend/frontend-static-pages.php)
-
tags/3.6.1/frontend/frontend.php (copied) (copied from polylang/trunk/frontend/frontend.php)
-
tags/3.6.1/include/base.php (copied) (copied from polylang/trunk/include/base.php)
-
tags/3.6.1/include/cache.php (copied) (copied from polylang/trunk/include/cache.php) (1 diff)
-
tags/3.6.1/include/class-polylang.php (copied) (copied from polylang/trunk/include/class-polylang.php)
-
tags/3.6.1/include/cookie.php (copied) (copied from polylang/trunk/include/cookie.php)
-
tags/3.6.1/include/crud-posts.php (copied) (copied from polylang/trunk/include/crud-posts.php)
-
tags/3.6.1/include/crud-terms.php (copied) (copied from polylang/trunk/include/crud-terms.php)
-
tags/3.6.1/include/filter-rest-routes.php (copied) (copied from polylang/trunk/include/filter-rest-routes.php)
-
tags/3.6.1/include/filters-links.php (copied) (copied from polylang/trunk/include/filters-links.php)
-
tags/3.6.1/include/filters-widgets-options.php (copied) (copied from polylang/trunk/include/filters-widgets-options.php)
-
tags/3.6.1/include/filters.php (copied) (copied from polylang/trunk/include/filters.php)
-
tags/3.6.1/include/functions.php (copied) (copied from polylang/trunk/include/functions.php)
-
tags/3.6.1/include/language.php (copied) (copied from polylang/trunk/include/language.php)
-
tags/3.6.1/include/license.php (copied) (copied from polylang/trunk/include/license.php)
-
tags/3.6.1/include/links-abstract-domain.php (copied) (copied from polylang/trunk/include/links-abstract-domain.php)
-
tags/3.6.1/include/links-directory.php (copied) (copied from polylang/trunk/include/links-directory.php) (3 diffs)
-
tags/3.6.1/include/links-domain.php (copied) (copied from polylang/trunk/include/links-domain.php)
-
tags/3.6.1/include/links-model.php (copied) (copied from polylang/trunk/include/links-model.php)
-
tags/3.6.1/include/links-permalinks.php (copied) (copied from polylang/trunk/include/links-permalinks.php)
-
tags/3.6.1/include/links.php (copied) (copied from polylang/trunk/include/links.php)
-
tags/3.6.1/include/model.php (copied) (copied from polylang/trunk/include/model.php)
-
tags/3.6.1/include/nav-menu.php (copied) (copied from polylang/trunk/include/nav-menu.php)
-
tags/3.6.1/include/olt-manager.php (copied) (copied from polylang/trunk/include/olt-manager.php)
-
tags/3.6.1/include/query.php (copied) (copied from polylang/trunk/include/query.php)
-
tags/3.6.1/include/rest-request.php (copied) (copied from polylang/trunk/include/rest-request.php)
-
tags/3.6.1/include/static-pages.php (copied) (copied from polylang/trunk/include/static-pages.php)
-
tags/3.6.1/include/switcher.php (copied) (copied from polylang/trunk/include/switcher.php)
-
tags/3.6.1/include/translatable-object.php (copied) (copied from polylang/trunk/include/translatable-object.php)
-
tags/3.6.1/include/translate-option.php (copied) (copied from polylang/trunk/include/translate-option.php)
-
tags/3.6.1/include/translated-post.php (copied) (copied from polylang/trunk/include/translated-post.php) (2 diffs)
-
tags/3.6.1/include/translated-term.php (copied) (copied from polylang/trunk/include/translated-term.php) (1 diff)
-
tags/3.6.1/include/widget-calendar.php (copied) (copied from polylang/trunk/include/widget-calendar.php)
-
tags/3.6.1/install/install-base.php (copied) (copied from polylang/trunk/install/install-base.php)
-
tags/3.6.1/install/plugin-updater.php (copied) (copied from polylang/trunk/install/plugin-updater.php)
-
tags/3.6.1/integrations/aqua-resizer/load.php (copied) (copied from polylang/trunk/integrations/aqua-resizer/load.php)
-
tags/3.6.1/integrations/cache/cache-compat.php (copied) (copied from polylang/trunk/integrations/cache/cache-compat.php)
-
tags/3.6.1/integrations/cache/load.php (copied) (copied from polylang/trunk/integrations/cache/load.php)
-
tags/3.6.1/integrations/custom-field-template/load.php (copied) (copied from polylang/trunk/integrations/custom-field-template/load.php)
-
tags/3.6.1/integrations/domain-mapping/domain-mapping.php (copied) (copied from polylang/trunk/integrations/domain-mapping/domain-mapping.php)
-
tags/3.6.1/integrations/domain-mapping/load.php (copied) (copied from polylang/trunk/integrations/domain-mapping/load.php)
-
tags/3.6.1/integrations/duplicate-post/duplicate-post.php (copied) (copied from polylang/trunk/integrations/duplicate-post/duplicate-post.php)
-
tags/3.6.1/integrations/duplicate-post/load.php (copied) (copied from polylang/trunk/integrations/duplicate-post/load.php)
-
tags/3.6.1/integrations/jetpack/jetpack.php (copied) (copied from polylang/trunk/integrations/jetpack/jetpack.php)
-
tags/3.6.1/integrations/jetpack/load.php (copied) (copied from polylang/trunk/integrations/jetpack/load.php)
-
tags/3.6.1/integrations/no-category-base/load.php (copied) (copied from polylang/trunk/integrations/no-category-base/load.php)
-
tags/3.6.1/integrations/twenty-seventeen/load.php (copied) (copied from polylang/trunk/integrations/twenty-seventeen/load.php)
-
tags/3.6.1/integrations/wp-importer/load.php (copied) (copied from polylang/trunk/integrations/wp-importer/load.php)
-
tags/3.6.1/integrations/wp-importer/wordpress-importer.php (copied) (copied from polylang/trunk/integrations/wp-importer/wordpress-importer.php)
-
tags/3.6.1/integrations/wp-offload-media/as3cf.php (copied) (copied from polylang/trunk/integrations/wp-offload-media/as3cf.php)
-
tags/3.6.1/integrations/wp-offload-media/load.php (copied) (copied from polylang/trunk/integrations/wp-offload-media/load.php)
-
tags/3.6.1/integrations/wp-sweep/load.php (copied) (copied from polylang/trunk/integrations/wp-sweep/load.php)
-
tags/3.6.1/integrations/wpseo/load.php (copied) (copied from polylang/trunk/integrations/wpseo/load.php)
-
tags/3.6.1/integrations/wpseo/wpseo-ogp.php (copied) (copied from polylang/trunk/integrations/wpseo/wpseo-ogp.php)
-
tags/3.6.1/integrations/wpseo/wpseo.php (copied) (copied from polylang/trunk/integrations/wpseo/wpseo.php)
-
tags/3.6.1/integrations/yarpp/load.php (copied) (copied from polylang/trunk/integrations/yarpp/load.php)
-
tags/3.6.1/js/build/admin.js (copied) (copied from polylang/trunk/js/build/admin.js)
-
tags/3.6.1/js/build/admin.min.js (copied) (copied from polylang/trunk/js/build/admin.min.js)
-
tags/3.6.1/js/build/block-editor.js (copied) (copied from polylang/trunk/js/build/block-editor.js)
-
tags/3.6.1/js/build/block-editor.min.js (copied) (copied from polylang/trunk/js/build/block-editor.min.js)
-
tags/3.6.1/js/build/classic-editor.js (copied) (copied from polylang/trunk/js/build/classic-editor.js)
-
tags/3.6.1/js/build/classic-editor.min.js (copied) (copied from polylang/trunk/js/build/classic-editor.min.js)
-
tags/3.6.1/js/build/languages-step.js (copied) (copied from polylang/trunk/js/build/languages-step.js)
-
tags/3.6.1/js/build/nav-menu.js (copied) (copied from polylang/trunk/js/build/nav-menu.js)
-
tags/3.6.1/js/build/post.js (copied) (copied from polylang/trunk/js/build/post.js)
-
tags/3.6.1/js/build/post.min.js (copied) (copied from polylang/trunk/js/build/post.min.js)
-
tags/3.6.1/js/build/term.js (copied) (copied from polylang/trunk/js/build/term.js)
-
tags/3.6.1/js/build/term.min.js (copied) (copied from polylang/trunk/js/build/term.min.js)
-
tags/3.6.1/js/build/user.js (copied) (copied from polylang/trunk/js/build/user.js)
-
tags/3.6.1/js/build/widgets.js (copied) (copied from polylang/trunk/js/build/widgets.js)
-
tags/3.6.1/modules/machine-translation (copied) (copied from polylang/trunk/modules/machine-translation)
-
tags/3.6.1/modules/machine-translation/settings-preview-machine-translation.php (copied) (copied from polylang/trunk/modules/machine-translation/settings-preview-machine-translation.php)
-
tags/3.6.1/modules/share-slug/load.php (copied) (copied from polylang/trunk/modules/share-slug/load.php)
-
tags/3.6.1/modules/share-slug/settings-preview-share-slug.php (copied) (copied from polylang/trunk/modules/share-slug/settings-preview-share-slug.php)
-
tags/3.6.1/modules/site-health/admin-site-health.php (copied) (copied from polylang/trunk/modules/site-health/admin-site-health.php)
-
tags/3.6.1/modules/site-health/load.php (copied) (copied from polylang/trunk/modules/site-health/load.php)
-
tags/3.6.1/modules/sitemaps/load.php (copied) (copied from polylang/trunk/modules/sitemaps/load.php)
-
tags/3.6.1/modules/sitemaps/multilingual-sitemaps-provider.php (copied) (copied from polylang/trunk/modules/sitemaps/multilingual-sitemaps-provider.php)
-
tags/3.6.1/modules/sync/admin-sync.php (copied) (copied from polylang/trunk/modules/sync/admin-sync.php)
-
tags/3.6.1/modules/sync/load.php (copied) (copied from polylang/trunk/modules/sync/load.php)
-
tags/3.6.1/modules/sync/settings-sync.php (copied) (copied from polylang/trunk/modules/sync/settings-sync.php)
-
tags/3.6.1/modules/sync/sync-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-metas.php) (2 diffs)
-
tags/3.6.1/modules/sync/sync-post-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-post-metas.php)
-
tags/3.6.1/modules/sync/sync-tax.php (copied) (copied from polylang/trunk/modules/sync/sync-tax.php)
-
tags/3.6.1/modules/sync/sync-term-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-term-metas.php)
-
tags/3.6.1/modules/sync/sync.php (copied) (copied from polylang/trunk/modules/sync/sync.php)
-
tags/3.6.1/modules/translate-slugs/load.php (copied) (copied from polylang/trunk/modules/translate-slugs/load.php)
-
tags/3.6.1/modules/translate-slugs/settings-preview-translate-slugs.php (copied) (copied from polylang/trunk/modules/translate-slugs/settings-preview-translate-slugs.php)
-
tags/3.6.1/modules/wizard/html-wizard-notice.php (copied) (copied from polylang/trunk/modules/wizard/html-wizard-notice.php)
-
tags/3.6.1/modules/wizard/js/languages-step.js (copied) (copied from polylang/trunk/modules/wizard/js/languages-step.js)
-
tags/3.6.1/modules/wizard/load.php (copied) (copied from polylang/trunk/modules/wizard/load.php)
-
tags/3.6.1/modules/wizard/view-wizard-page.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-page.php)
-
tags/3.6.1/modules/wizard/view-wizard-step-home-page.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-home-page.php)
-
tags/3.6.1/modules/wizard/view-wizard-step-languages.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-languages.php)
-
tags/3.6.1/modules/wizard/view-wizard-step-last.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-last.php)
-
tags/3.6.1/modules/wizard/view-wizard-step-licenses.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-licenses.php)
-
tags/3.6.1/modules/wizard/view-wizard-step-media.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-media.php)
-
tags/3.6.1/modules/wizard/view-wizard-step-untranslated-contents.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-untranslated-contents.php)
-
tags/3.6.1/modules/wizard/wizard.php (copied) (copied from polylang/trunk/modules/wizard/wizard.php)
-
tags/3.6.1/modules/wpml/load.php (copied) (copied from polylang/trunk/modules/wpml/load.php)
-
tags/3.6.1/modules/wpml/wpml-api.php (copied) (copied from polylang/trunk/modules/wpml/wpml-api.php)
-
tags/3.6.1/modules/wpml/wpml-config.php (copied) (copied from polylang/trunk/modules/wpml/wpml-config.php)
-
tags/3.6.1/modules/wpml/wpml-legacy-api.php (copied) (copied from polylang/trunk/modules/wpml/wpml-legacy-api.php)
-
tags/3.6.1/polylang.php (copied) (copied from polylang/trunk/polylang.php) (2 diffs)
-
tags/3.6.1/readme.txt (copied) (copied from polylang/trunk/readme.txt) (2 diffs)
-
tags/3.6.1/settings/flags.php (copied) (copied from polylang/trunk/settings/flags.php)
-
tags/3.6.1/settings/languages.php (copied) (copied from polylang/trunk/settings/languages.php)
-
tags/3.6.1/settings/settings-browser.php (copied) (copied from polylang/trunk/settings/settings-browser.php)
-
tags/3.6.1/settings/settings-cpt.php (copied) (copied from polylang/trunk/settings/settings-cpt.php)
-
tags/3.6.1/settings/settings-licenses.php (copied) (copied from polylang/trunk/settings/settings-licenses.php)
-
tags/3.6.1/settings/settings-module.php (copied) (copied from polylang/trunk/settings/settings-module.php)
-
tags/3.6.1/settings/settings-url.php (copied) (copied from polylang/trunk/settings/settings-url.php)
-
tags/3.6.1/settings/settings.php (copied) (copied from polylang/trunk/settings/settings.php)
-
tags/3.6.1/settings/table-settings.php (copied) (copied from polylang/trunk/settings/table-settings.php)
-
tags/3.6.1/settings/table-string.php (copied) (copied from polylang/trunk/settings/table-string.php)
-
tags/3.6.1/settings/view-about.php (copied) (copied from polylang/trunk/settings/view-about.php)
-
tags/3.6.1/settings/view-languages.php (copied) (copied from polylang/trunk/settings/view-languages.php)
-
tags/3.6.1/settings/view-tab-lang.php (copied) (copied from polylang/trunk/settings/view-tab-lang.php)
-
tags/3.6.1/settings/view-tab-settings.php (copied) (copied from polylang/trunk/settings/view-tab-settings.php)
-
tags/3.6.1/settings/view-tab-strings.php (copied) (copied from polylang/trunk/settings/view-tab-strings.php)
-
tags/3.6.1/uninstall.php (copied) (copied from polylang/trunk/uninstall.php)
-
tags/3.6.1/vendor/autoload.php (copied) (copied from polylang/trunk/vendor/autoload.php)
-
tags/3.6.1/vendor/composer/ClassLoader.php (copied) (copied from polylang/trunk/vendor/composer/ClassLoader.php)
-
tags/3.6.1/vendor/composer/InstalledVersions.php (copied) (copied from polylang/trunk/vendor/composer/InstalledVersions.php)
-
tags/3.6.1/vendor/composer/autoload_classmap.php (copied) (copied from polylang/trunk/vendor/composer/autoload_classmap.php)
-
tags/3.6.1/vendor/composer/autoload_namespaces.php (copied) (copied from polylang/trunk/vendor/composer/autoload_namespaces.php)
-
tags/3.6.1/vendor/composer/autoload_psr4.php (copied) (copied from polylang/trunk/vendor/composer/autoload_psr4.php)
-
tags/3.6.1/vendor/composer/autoload_real.php (copied) (copied from polylang/trunk/vendor/composer/autoload_real.php)
-
tags/3.6.1/vendor/composer/autoload_static.php (copied) (copied from polylang/trunk/vendor/composer/autoload_static.php)
-
tags/3.6.1/vendor/composer/installed.json (copied) (copied from polylang/trunk/vendor/composer/installed.json)
-
tags/3.6.1/vendor/composer/installed.php (copied) (copied from polylang/trunk/vendor/composer/installed.php) (2 diffs)
-
tags/3.6.1/vendor/composer/platform_check.php (copied) (copied from polylang/trunk/vendor/composer/platform_check.php)
-
trunk/frontend/frontend-filters-search.php (modified) (1 diff)
-
trunk/include/cache.php (modified) (1 diff)
-
trunk/include/links-directory.php (modified) (3 diffs)
-
trunk/include/translated-post.php (modified) (2 diffs)
-
trunk/include/translated-term.php (modified) (1 diff)
-
trunk/modules/sync/sync-metas.php (modified) (2 diffs)
-
trunk/polylang.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
polylang/tags/3.6.1/frontend/frontend-filters-search.php
r2974283 r3067374 70 70 if ( $this->links_model->using_permalinks ) { 71 71 // Take care to modify only the url in the <form> tag. 72 preg_match( '#<form.+?># ', $form, $matches );72 preg_match( '#<form.+?>#s', $form, $matches ); 73 73 $old = reset( $matches ); 74 74 if ( empty( $old ) ) { -
polylang/tags/3.6.1/include/cache.php
r3042028 r3067374 65 65 */ 66 66 public function set( $key, $data ) { 67 if ( ! doing_action( 'switch_blog' ) ) { 68 $this->cache[ $this->blog_id ][ $key ] = $data; 69 } 67 $this->cache[ $this->blog_id ][ $key ] = $data; 68 70 69 return $data; 71 70 } -
polylang/tags/3.6.1/include/links-directory.php
r2979957 r3067374 42 42 43 43 parent::init(); 44 45 if ( did_action( 'setup_theme' ) ) {46 $this->add_permastruct();47 } else {48 add_action( 'setup_theme', array( $this, 'add_permastruct' ), 2 );49 }50 44 } 51 45 … … 145 139 $slug = $this->options['default_lang'] === $language && $this->options['hide_default'] ? '' : '/' . $this->root . $base . $language; 146 140 return trailingslashit( $this->home . $slug ); 147 }148 149 /**150 * Optionally removes 'language' in permalinks so that we get http://www.myblog/en/ instead of http://www.myblog/language/en/.151 *152 * @since 1.2153 *154 * @return void155 */156 public function add_permastruct() {157 // Language information always in front of the uri ( 'with_front' => false ).158 if ( $this->model->has_languages() ) {159 add_permastruct( 'language', $this->options['rewrite'] ? '%language%' : 'language/%language%', array( 'with_front' => false ) );160 }161 141 } 162 142 … … 178 158 return; 179 159 } 180 181 add_filter( 'language_rewrite_rules', '__return_empty_array' ); // Suppress the rules created by WordPress for our taxonomy.182 160 183 161 foreach ( $this->get_rewrite_rules_filters_with_callbacks() as $rule => $callback ) { -
polylang/tags/3.6.1/include/translated-post.php
r3042028 r3067374 147 147 $post_types = (array) apply_filters( 'pll_get_post_types', $post_types, false ); 148 148 149 if ( did_action( 'after_setup_theme' ) ) {149 if ( did_action( 'after_setup_theme' ) && ! doing_action( 'switch_blog' ) ) { 150 150 $this->model->cache->set( 'post_types', $post_types ); 151 151 } … … 193 193 'publicly_queryable' => true, // Since WP 4.5. 194 194 'query_var' => 'lang', 195 'rewrite' => $this->model->options['force_lang'] < 2, // No rewrite for domains and sub-domains.195 'rewrite' => false, // Rewrite rules are added through filters when needed. 196 196 '_pll' => true, // Polylang taxonomy. 197 197 ) -
polylang/tags/3.6.1/include/translated-term.php
r3042028 r3067374 215 215 $taxonomies = (array) apply_filters( 'pll_get_taxonomies', $taxonomies, false ); 216 216 217 if ( did_action( 'after_setup_theme' ) ) {217 if ( did_action( 'after_setup_theme' ) && ! doing_action( 'switch_blog' ) ) { 218 218 $this->model->cache->set( 'taxonomies', $taxonomies ); 219 219 } -
polylang/tags/3.6.1/modules/sync/sync-metas.php
r3042028 r3067374 73 73 * @return void 74 74 */ 75 p rotectedfunction remove_all_meta_actions() {75 public function remove_all_meta_actions() { 76 76 $this->remove_add_meta_action(); 77 77 … … 101 101 * @return void 102 102 */ 103 p rotectedfunction add_all_meta_actions() {103 public function add_all_meta_actions() { 104 104 $this->restore_add_meta_action(); 105 105 -
polylang/tags/3.6.1/polylang.php
r3053182 r3067374 11 11 * Plugin URI: https://polylang.pro 12 12 * Description: Adds multilingual capability to WordPress 13 * Version: 3.6 13 * Version: 3.6.1 14 14 * Requires at least: 6.2 15 15 * Requires PHP: 7.0 … … 54 54 } else { 55 55 // Go on loading the plugin 56 define( 'POLYLANG_VERSION', '3.6 ' );56 define( 'POLYLANG_VERSION', '3.6.1' ); 57 57 define( 'PLL_MIN_WP_VERSION', '6.2' ); 58 58 define( 'PLL_MIN_PHP_VERSION', '7.0' ); -
polylang/tags/3.6.1/readme.txt
r3054524 r3067374 6 6 Tested up to: 6.5 7 7 Requires PHP: 7.0 8 Stable tag: 3.6 8 Stable tag: 3.6.1 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 105 105 == Changelog == 106 106 107 = 3.6.1 (2024-04-09) = 108 109 * Pro: Fix ACF fields not swown after a post was translated with DeepL 110 * Remove rewrite when registering the language taxonomy #1457 111 * Fix search block not filtered when displayed as button only #1459 112 * Fix current language not kept when using switch_to_blog() in multisite #1458 113 107 114 = 3.6 (2024-03-18) = 108 115 -
polylang/tags/3.6.1/vendor/composer/installed.php
r3053182 r3067374 4 4 'pretty_version' => '3.6.x-dev', 5 5 'version' => '3.6.9999999.9999999-dev', 6 'reference' => ' fbc31631358b8ad3d3432960997fa601db368b8a',6 'reference' => 'd762db6d83067556f6270aa0f41b8e0b9b427477', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => '3.6.x-dev', 15 15 'version' => '3.6.9999999.9999999-dev', 16 'reference' => ' fbc31631358b8ad3d3432960997fa601db368b8a',16 'reference' => 'd762db6d83067556f6270aa0f41b8e0b9b427477', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
polylang/trunk/frontend/frontend-filters-search.php
r2974283 r3067374 70 70 if ( $this->links_model->using_permalinks ) { 71 71 // Take care to modify only the url in the <form> tag. 72 preg_match( '#<form.+?># ', $form, $matches );72 preg_match( '#<form.+?>#s', $form, $matches ); 73 73 $old = reset( $matches ); 74 74 if ( empty( $old ) ) { -
polylang/trunk/include/cache.php
r3042028 r3067374 65 65 */ 66 66 public function set( $key, $data ) { 67 if ( ! doing_action( 'switch_blog' ) ) { 68 $this->cache[ $this->blog_id ][ $key ] = $data; 69 } 67 $this->cache[ $this->blog_id ][ $key ] = $data; 68 70 69 return $data; 71 70 } -
polylang/trunk/include/links-directory.php
r2979957 r3067374 42 42 43 43 parent::init(); 44 45 if ( did_action( 'setup_theme' ) ) {46 $this->add_permastruct();47 } else {48 add_action( 'setup_theme', array( $this, 'add_permastruct' ), 2 );49 }50 44 } 51 45 … … 145 139 $slug = $this->options['default_lang'] === $language && $this->options['hide_default'] ? '' : '/' . $this->root . $base . $language; 146 140 return trailingslashit( $this->home . $slug ); 147 }148 149 /**150 * Optionally removes 'language' in permalinks so that we get http://www.myblog/en/ instead of http://www.myblog/language/en/.151 *152 * @since 1.2153 *154 * @return void155 */156 public function add_permastruct() {157 // Language information always in front of the uri ( 'with_front' => false ).158 if ( $this->model->has_languages() ) {159 add_permastruct( 'language', $this->options['rewrite'] ? '%language%' : 'language/%language%', array( 'with_front' => false ) );160 }161 141 } 162 142 … … 178 158 return; 179 159 } 180 181 add_filter( 'language_rewrite_rules', '__return_empty_array' ); // Suppress the rules created by WordPress for our taxonomy.182 160 183 161 foreach ( $this->get_rewrite_rules_filters_with_callbacks() as $rule => $callback ) { -
polylang/trunk/include/translated-post.php
r3042028 r3067374 147 147 $post_types = (array) apply_filters( 'pll_get_post_types', $post_types, false ); 148 148 149 if ( did_action( 'after_setup_theme' ) ) {149 if ( did_action( 'after_setup_theme' ) && ! doing_action( 'switch_blog' ) ) { 150 150 $this->model->cache->set( 'post_types', $post_types ); 151 151 } … … 193 193 'publicly_queryable' => true, // Since WP 4.5. 194 194 'query_var' => 'lang', 195 'rewrite' => $this->model->options['force_lang'] < 2, // No rewrite for domains and sub-domains.195 'rewrite' => false, // Rewrite rules are added through filters when needed. 196 196 '_pll' => true, // Polylang taxonomy. 197 197 ) -
polylang/trunk/include/translated-term.php
r3042028 r3067374 215 215 $taxonomies = (array) apply_filters( 'pll_get_taxonomies', $taxonomies, false ); 216 216 217 if ( did_action( 'after_setup_theme' ) ) {217 if ( did_action( 'after_setup_theme' ) && ! doing_action( 'switch_blog' ) ) { 218 218 $this->model->cache->set( 'taxonomies', $taxonomies ); 219 219 } -
polylang/trunk/modules/sync/sync-metas.php
r3042028 r3067374 73 73 * @return void 74 74 */ 75 p rotectedfunction remove_all_meta_actions() {75 public function remove_all_meta_actions() { 76 76 $this->remove_add_meta_action(); 77 77 … … 101 101 * @return void 102 102 */ 103 p rotectedfunction add_all_meta_actions() {103 public function add_all_meta_actions() { 104 104 $this->restore_add_meta_action(); 105 105 -
polylang/trunk/polylang.php
r3053182 r3067374 11 11 * Plugin URI: https://polylang.pro 12 12 * Description: Adds multilingual capability to WordPress 13 * Version: 3.6 13 * Version: 3.6.1 14 14 * Requires at least: 6.2 15 15 * Requires PHP: 7.0 … … 54 54 } else { 55 55 // Go on loading the plugin 56 define( 'POLYLANG_VERSION', '3.6 ' );56 define( 'POLYLANG_VERSION', '3.6.1' ); 57 57 define( 'PLL_MIN_WP_VERSION', '6.2' ); 58 58 define( 'PLL_MIN_PHP_VERSION', '7.0' ); -
polylang/trunk/readme.txt
r3054524 r3067374 6 6 Tested up to: 6.5 7 7 Requires PHP: 7.0 8 Stable tag: 3.6 8 Stable tag: 3.6.1 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 105 105 == Changelog == 106 106 107 = 3.6.1 (2024-04-09) = 108 109 * Pro: Fix ACF fields not swown after a post was translated with DeepL 110 * Remove rewrite when registering the language taxonomy #1457 111 * Fix search block not filtered when displayed as button only #1459 112 * Fix current language not kept when using switch_to_blog() in multisite #1458 113 107 114 = 3.6 (2024-03-18) = 108 115 -
polylang/trunk/vendor/composer/installed.php
r3053182 r3067374 4 4 'pretty_version' => '3.6.x-dev', 5 5 'version' => '3.6.9999999.9999999-dev', 6 'reference' => ' fbc31631358b8ad3d3432960997fa601db368b8a',6 'reference' => 'd762db6d83067556f6270aa0f41b8e0b9b427477', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => '3.6.x-dev', 15 15 'version' => '3.6.9999999.9999999-dev', 16 'reference' => ' fbc31631358b8ad3d3432960997fa601db368b8a',16 'reference' => 'd762db6d83067556f6270aa0f41b8e0b9b427477', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.