- Timestamp:
- 06/18/2024 06:34:20 AM (22 months ago)
- Location:
- polylang
- Files:
-
- 7 edited
- 166 copied
-
tags/3.6.3 (copied) (copied from polylang/trunk)
-
tags/3.6.3/admin/admin-base.php (copied) (copied from polylang/trunk/admin/admin-base.php)
-
tags/3.6.3/admin/admin-block-editor.php (copied) (copied from polylang/trunk/admin/admin-block-editor.php)
-
tags/3.6.3/admin/admin-classic-editor.php (copied) (copied from polylang/trunk/admin/admin-classic-editor.php)
-
tags/3.6.3/admin/admin-default-term.php (copied) (copied from polylang/trunk/admin/admin-default-term.php)
-
tags/3.6.3/admin/admin-filters-columns.php (copied) (copied from polylang/trunk/admin/admin-filters-columns.php)
-
tags/3.6.3/admin/admin-filters-media.php (copied) (copied from polylang/trunk/admin/admin-filters-media.php)
-
tags/3.6.3/admin/admin-filters-post-base.php (copied) (copied from polylang/trunk/admin/admin-filters-post-base.php)
-
tags/3.6.3/admin/admin-filters-post.php (copied) (copied from polylang/trunk/admin/admin-filters-post.php)
-
tags/3.6.3/admin/admin-filters-term.php (copied) (copied from polylang/trunk/admin/admin-filters-term.php)
-
tags/3.6.3/admin/admin-filters-widgets-options.php (copied) (copied from polylang/trunk/admin/admin-filters-widgets-options.php)
-
tags/3.6.3/admin/admin-filters.php (copied) (copied from polylang/trunk/admin/admin-filters.php)
-
tags/3.6.3/admin/admin-model.php (copied) (copied from polylang/trunk/admin/admin-model.php)
-
tags/3.6.3/admin/admin-nav-menu.php (copied) (copied from polylang/trunk/admin/admin-nav-menu.php)
-
tags/3.6.3/admin/admin-notices.php (copied) (copied from polylang/trunk/admin/admin-notices.php)
-
tags/3.6.3/admin/admin-static-pages.php (copied) (copied from polylang/trunk/admin/admin-static-pages.php)
-
tags/3.6.3/admin/view-translations-media.php (copied) (copied from polylang/trunk/admin/view-translations-media.php)
-
tags/3.6.3/admin/view-translations-post.php (copied) (copied from polylang/trunk/admin/view-translations-post.php)
-
tags/3.6.3/admin/view-translations-term.php (copied) (copied from polylang/trunk/admin/view-translations-term.php)
-
tags/3.6.3/changelog.txt (copied) (copied from polylang/trunk/changelog.txt)
-
tags/3.6.3/css/build/admin.css (copied) (copied from polylang/trunk/css/build/admin.css)
-
tags/3.6.3/css/build/admin.min.css (copied) (copied from polylang/trunk/css/build/admin.min.css)
-
tags/3.6.3/css/build/wizard.min.css (copied) (copied from polylang/trunk/css/build/wizard.min.css)
-
tags/3.6.3/frontend/accept-languages-collection.php (copied) (copied from polylang/trunk/frontend/accept-languages-collection.php)
-
tags/3.6.3/frontend/canonical.php (copied) (copied from polylang/trunk/frontend/canonical.php)
-
tags/3.6.3/frontend/choose-lang-content.php (copied) (copied from polylang/trunk/frontend/choose-lang-content.php)
-
tags/3.6.3/frontend/choose-lang.php (copied) (copied from polylang/trunk/frontend/choose-lang.php)
-
tags/3.6.3/frontend/frontend-auto-translate.php (copied) (copied from polylang/trunk/frontend/frontend-auto-translate.php)
-
tags/3.6.3/frontend/frontend-filters-links.php (copied) (copied from polylang/trunk/frontend/frontend-filters-links.php)
-
tags/3.6.3/frontend/frontend-filters-search.php (copied) (copied from polylang/trunk/frontend/frontend-filters-search.php) (2 diffs)
-
tags/3.6.3/frontend/frontend-filters-widgets.php (copied) (copied from polylang/trunk/frontend/frontend-filters-widgets.php)
-
tags/3.6.3/frontend/frontend-filters.php (copied) (copied from polylang/trunk/frontend/frontend-filters.php)
-
tags/3.6.3/frontend/frontend-links.php (copied) (copied from polylang/trunk/frontend/frontend-links.php)
-
tags/3.6.3/frontend/frontend-nav-menu.php (copied) (copied from polylang/trunk/frontend/frontend-nav-menu.php)
-
tags/3.6.3/frontend/frontend-static-pages.php (copied) (copied from polylang/trunk/frontend/frontend-static-pages.php)
-
tags/3.6.3/frontend/frontend.php (copied) (copied from polylang/trunk/frontend/frontend.php)
-
tags/3.6.3/include/base.php (copied) (copied from polylang/trunk/include/base.php)
-
tags/3.6.3/include/cache.php (copied) (copied from polylang/trunk/include/cache.php)
-
tags/3.6.3/include/class-polylang.php (copied) (copied from polylang/trunk/include/class-polylang.php)
-
tags/3.6.3/include/cookie.php (copied) (copied from polylang/trunk/include/cookie.php)
-
tags/3.6.3/include/crud-posts.php (copied) (copied from polylang/trunk/include/crud-posts.php)
-
tags/3.6.3/include/crud-terms.php (copied) (copied from polylang/trunk/include/crud-terms.php)
-
tags/3.6.3/include/filter-rest-routes.php (copied) (copied from polylang/trunk/include/filter-rest-routes.php)
-
tags/3.6.3/include/filters-links.php (copied) (copied from polylang/trunk/include/filters-links.php)
-
tags/3.6.3/include/filters-widgets-options.php (copied) (copied from polylang/trunk/include/filters-widgets-options.php)
-
tags/3.6.3/include/filters.php (copied) (copied from polylang/trunk/include/filters.php)
-
tags/3.6.3/include/functions.php (copied) (copied from polylang/trunk/include/functions.php)
-
tags/3.6.3/include/language.php (copied) (copied from polylang/trunk/include/language.php) (3 diffs)
-
tags/3.6.3/include/license.php (copied) (copied from polylang/trunk/include/license.php)
-
tags/3.6.3/include/links-abstract-domain.php (copied) (copied from polylang/trunk/include/links-abstract-domain.php)
-
tags/3.6.3/include/links-directory.php (copied) (copied from polylang/trunk/include/links-directory.php)
-
tags/3.6.3/include/links-domain.php (copied) (copied from polylang/trunk/include/links-domain.php)
-
tags/3.6.3/include/links-model.php (copied) (copied from polylang/trunk/include/links-model.php)
-
tags/3.6.3/include/links-permalinks.php (copied) (copied from polylang/trunk/include/links-permalinks.php)
-
tags/3.6.3/include/links.php (copied) (copied from polylang/trunk/include/links.php)
-
tags/3.6.3/include/model.php (copied) (copied from polylang/trunk/include/model.php)
-
tags/3.6.3/include/nav-menu.php (copied) (copied from polylang/trunk/include/nav-menu.php)
-
tags/3.6.3/include/olt-manager.php (copied) (copied from polylang/trunk/include/olt-manager.php)
-
tags/3.6.3/include/query.php (copied) (copied from polylang/trunk/include/query.php)
-
tags/3.6.3/include/rest-request.php (copied) (copied from polylang/trunk/include/rest-request.php)
-
tags/3.6.3/include/static-pages.php (copied) (copied from polylang/trunk/include/static-pages.php)
-
tags/3.6.3/include/switcher.php (copied) (copied from polylang/trunk/include/switcher.php)
-
tags/3.6.3/include/translatable-object.php (copied) (copied from polylang/trunk/include/translatable-object.php)
-
tags/3.6.3/include/translate-option.php (copied) (copied from polylang/trunk/include/translate-option.php)
-
tags/3.6.3/include/translated-post.php (copied) (copied from polylang/trunk/include/translated-post.php)
-
tags/3.6.3/include/translated-term.php (copied) (copied from polylang/trunk/include/translated-term.php)
-
tags/3.6.3/include/widget-calendar.php (copied) (copied from polylang/trunk/include/widget-calendar.php)
-
tags/3.6.3/install/install-base.php (copied) (copied from polylang/trunk/install/install-base.php)
-
tags/3.6.3/install/plugin-updater.php (copied) (copied from polylang/trunk/install/plugin-updater.php)
-
tags/3.6.3/integrations/aqua-resizer/load.php (copied) (copied from polylang/trunk/integrations/aqua-resizer/load.php)
-
tags/3.6.3/integrations/cache/cache-compat.php (copied) (copied from polylang/trunk/integrations/cache/cache-compat.php)
-
tags/3.6.3/integrations/cache/load.php (copied) (copied from polylang/trunk/integrations/cache/load.php)
-
tags/3.6.3/integrations/custom-field-template/load.php (copied) (copied from polylang/trunk/integrations/custom-field-template/load.php)
-
tags/3.6.3/integrations/domain-mapping/domain-mapping.php (copied) (copied from polylang/trunk/integrations/domain-mapping/domain-mapping.php)
-
tags/3.6.3/integrations/domain-mapping/load.php (copied) (copied from polylang/trunk/integrations/domain-mapping/load.php)
-
tags/3.6.3/integrations/duplicate-post/duplicate-post.php (copied) (copied from polylang/trunk/integrations/duplicate-post/duplicate-post.php)
-
tags/3.6.3/integrations/duplicate-post/load.php (copied) (copied from polylang/trunk/integrations/duplicate-post/load.php)
-
tags/3.6.3/integrations/jetpack/jetpack.php (copied) (copied from polylang/trunk/integrations/jetpack/jetpack.php)
-
tags/3.6.3/integrations/jetpack/load.php (copied) (copied from polylang/trunk/integrations/jetpack/load.php)
-
tags/3.6.3/integrations/no-category-base/load.php (copied) (copied from polylang/trunk/integrations/no-category-base/load.php)
-
tags/3.6.3/integrations/twenty-seventeen/load.php (copied) (copied from polylang/trunk/integrations/twenty-seventeen/load.php)
-
tags/3.6.3/integrations/wp-importer/load.php (copied) (copied from polylang/trunk/integrations/wp-importer/load.php)
-
tags/3.6.3/integrations/wp-importer/wordpress-importer.php (copied) (copied from polylang/trunk/integrations/wp-importer/wordpress-importer.php)
-
tags/3.6.3/integrations/wp-offload-media/as3cf.php (copied) (copied from polylang/trunk/integrations/wp-offload-media/as3cf.php)
-
tags/3.6.3/integrations/wp-offload-media/load.php (copied) (copied from polylang/trunk/integrations/wp-offload-media/load.php)
-
tags/3.6.3/integrations/wp-sweep/load.php (copied) (copied from polylang/trunk/integrations/wp-sweep/load.php)
-
tags/3.6.3/integrations/wpseo/load.php (copied) (copied from polylang/trunk/integrations/wpseo/load.php)
-
tags/3.6.3/integrations/wpseo/wpseo-ogp.php (copied) (copied from polylang/trunk/integrations/wpseo/wpseo-ogp.php)
-
tags/3.6.3/integrations/wpseo/wpseo.php (copied) (copied from polylang/trunk/integrations/wpseo/wpseo.php)
-
tags/3.6.3/integrations/yarpp/load.php (copied) (copied from polylang/trunk/integrations/yarpp/load.php)
-
tags/3.6.3/js/build/admin.js (copied) (copied from polylang/trunk/js/build/admin.js)
-
tags/3.6.3/js/build/admin.min.js (copied) (copied from polylang/trunk/js/build/admin.min.js)
-
tags/3.6.3/js/build/block-editor.js (copied) (copied from polylang/trunk/js/build/block-editor.js)
-
tags/3.6.3/js/build/block-editor.min.js (copied) (copied from polylang/trunk/js/build/block-editor.min.js)
-
tags/3.6.3/js/build/classic-editor.js (copied) (copied from polylang/trunk/js/build/classic-editor.js)
-
tags/3.6.3/js/build/classic-editor.min.js (copied) (copied from polylang/trunk/js/build/classic-editor.min.js)
-
tags/3.6.3/js/build/languages-step.js (copied) (copied from polylang/trunk/js/build/languages-step.js)
-
tags/3.6.3/js/build/nav-menu.js (copied) (copied from polylang/trunk/js/build/nav-menu.js)
-
tags/3.6.3/js/build/post.js (copied) (copied from polylang/trunk/js/build/post.js)
-
tags/3.6.3/js/build/post.min.js (copied) (copied from polylang/trunk/js/build/post.min.js)
-
tags/3.6.3/js/build/term.js (copied) (copied from polylang/trunk/js/build/term.js)
-
tags/3.6.3/js/build/term.min.js (copied) (copied from polylang/trunk/js/build/term.min.js)
-
tags/3.6.3/js/build/user.js (copied) (copied from polylang/trunk/js/build/user.js)
-
tags/3.6.3/js/build/widgets.js (copied) (copied from polylang/trunk/js/build/widgets.js)
-
tags/3.6.3/modules/machine-translation (copied) (copied from polylang/trunk/modules/machine-translation)
-
tags/3.6.3/modules/machine-translation/settings-preview-machine-translation.php (copied) (copied from polylang/trunk/modules/machine-translation/settings-preview-machine-translation.php)
-
tags/3.6.3/modules/share-slug/load.php (copied) (copied from polylang/trunk/modules/share-slug/load.php)
-
tags/3.6.3/modules/share-slug/settings-preview-share-slug.php (copied) (copied from polylang/trunk/modules/share-slug/settings-preview-share-slug.php)
-
tags/3.6.3/modules/site-health/admin-site-health.php (copied) (copied from polylang/trunk/modules/site-health/admin-site-health.php)
-
tags/3.6.3/modules/site-health/load.php (copied) (copied from polylang/trunk/modules/site-health/load.php)
-
tags/3.6.3/modules/sitemaps/load.php (copied) (copied from polylang/trunk/modules/sitemaps/load.php)
-
tags/3.6.3/modules/sitemaps/multilingual-sitemaps-provider.php (copied) (copied from polylang/trunk/modules/sitemaps/multilingual-sitemaps-provider.php)
-
tags/3.6.3/modules/sync/admin-sync.php (copied) (copied from polylang/trunk/modules/sync/admin-sync.php)
-
tags/3.6.3/modules/sync/load.php (copied) (copied from polylang/trunk/modules/sync/load.php)
-
tags/3.6.3/modules/sync/settings-sync.php (copied) (copied from polylang/trunk/modules/sync/settings-sync.php)
-
tags/3.6.3/modules/sync/sync-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-metas.php)
-
tags/3.6.3/modules/sync/sync-post-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-post-metas.php)
-
tags/3.6.3/modules/sync/sync-tax.php (copied) (copied from polylang/trunk/modules/sync/sync-tax.php)
-
tags/3.6.3/modules/sync/sync-term-metas.php (copied) (copied from polylang/trunk/modules/sync/sync-term-metas.php)
-
tags/3.6.3/modules/sync/sync.php (copied) (copied from polylang/trunk/modules/sync/sync.php)
-
tags/3.6.3/modules/translate-slugs/load.php (copied) (copied from polylang/trunk/modules/translate-slugs/load.php)
-
tags/3.6.3/modules/translate-slugs/settings-preview-translate-slugs.php (copied) (copied from polylang/trunk/modules/translate-slugs/settings-preview-translate-slugs.php)
-
tags/3.6.3/modules/wizard/html-wizard-notice.php (copied) (copied from polylang/trunk/modules/wizard/html-wizard-notice.php)
-
tags/3.6.3/modules/wizard/js/languages-step.js (copied) (copied from polylang/trunk/modules/wizard/js/languages-step.js)
-
tags/3.6.3/modules/wizard/load.php (copied) (copied from polylang/trunk/modules/wizard/load.php)
-
tags/3.6.3/modules/wizard/view-wizard-page.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-page.php)
-
tags/3.6.3/modules/wizard/view-wizard-step-home-page.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-home-page.php)
-
tags/3.6.3/modules/wizard/view-wizard-step-languages.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-languages.php)
-
tags/3.6.3/modules/wizard/view-wizard-step-last.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-last.php)
-
tags/3.6.3/modules/wizard/view-wizard-step-licenses.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-licenses.php)
-
tags/3.6.3/modules/wizard/view-wizard-step-media.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-media.php)
-
tags/3.6.3/modules/wizard/view-wizard-step-untranslated-contents.php (copied) (copied from polylang/trunk/modules/wizard/view-wizard-step-untranslated-contents.php)
-
tags/3.6.3/modules/wizard/wizard.php (copied) (copied from polylang/trunk/modules/wizard/wizard.php)
-
tags/3.6.3/modules/wpml/load.php (copied) (copied from polylang/trunk/modules/wpml/load.php)
-
tags/3.6.3/modules/wpml/wpml-api.php (copied) (copied from polylang/trunk/modules/wpml/wpml-api.php)
-
tags/3.6.3/modules/wpml/wpml-compat.php (modified) (2 diffs)
-
tags/3.6.3/modules/wpml/wpml-config.php (copied) (copied from polylang/trunk/modules/wpml/wpml-config.php)
-
tags/3.6.3/modules/wpml/wpml-legacy-api.php (copied) (copied from polylang/trunk/modules/wpml/wpml-legacy-api.php)
-
tags/3.6.3/polylang.php (copied) (copied from polylang/trunk/polylang.php) (2 diffs)
-
tags/3.6.3/readme.txt (copied) (copied from polylang/trunk/readme.txt) (2 diffs)
-
tags/3.6.3/settings/flags.php (copied) (copied from polylang/trunk/settings/flags.php)
-
tags/3.6.3/settings/languages.php (copied) (copied from polylang/trunk/settings/languages.php)
-
tags/3.6.3/settings/settings-browser.php (copied) (copied from polylang/trunk/settings/settings-browser.php)
-
tags/3.6.3/settings/settings-cpt.php (copied) (copied from polylang/trunk/settings/settings-cpt.php)
-
tags/3.6.3/settings/settings-licenses.php (copied) (copied from polylang/trunk/settings/settings-licenses.php)
-
tags/3.6.3/settings/settings-module.php (copied) (copied from polylang/trunk/settings/settings-module.php)
-
tags/3.6.3/settings/settings-url.php (copied) (copied from polylang/trunk/settings/settings-url.php)
-
tags/3.6.3/settings/settings.php (copied) (copied from polylang/trunk/settings/settings.php)
-
tags/3.6.3/settings/table-settings.php (copied) (copied from polylang/trunk/settings/table-settings.php)
-
tags/3.6.3/settings/table-string.php (copied) (copied from polylang/trunk/settings/table-string.php)
-
tags/3.6.3/settings/view-about.php (copied) (copied from polylang/trunk/settings/view-about.php)
-
tags/3.6.3/settings/view-languages.php (copied) (copied from polylang/trunk/settings/view-languages.php)
-
tags/3.6.3/settings/view-tab-lang.php (copied) (copied from polylang/trunk/settings/view-tab-lang.php)
-
tags/3.6.3/settings/view-tab-settings.php (copied) (copied from polylang/trunk/settings/view-tab-settings.php)
-
tags/3.6.3/settings/view-tab-strings.php (copied) (copied from polylang/trunk/settings/view-tab-strings.php)
-
tags/3.6.3/uninstall.php (copied) (copied from polylang/trunk/uninstall.php)
-
tags/3.6.3/vendor/autoload.php (copied) (copied from polylang/trunk/vendor/autoload.php)
-
tags/3.6.3/vendor/composer/ClassLoader.php (copied) (copied from polylang/trunk/vendor/composer/ClassLoader.php)
-
tags/3.6.3/vendor/composer/InstalledVersions.php (copied) (copied from polylang/trunk/vendor/composer/InstalledVersions.php)
-
tags/3.6.3/vendor/composer/autoload_classmap.php (copied) (copied from polylang/trunk/vendor/composer/autoload_classmap.php)
-
tags/3.6.3/vendor/composer/autoload_namespaces.php (copied) (copied from polylang/trunk/vendor/composer/autoload_namespaces.php)
-
tags/3.6.3/vendor/composer/autoload_psr4.php (copied) (copied from polylang/trunk/vendor/composer/autoload_psr4.php)
-
tags/3.6.3/vendor/composer/autoload_real.php (copied) (copied from polylang/trunk/vendor/composer/autoload_real.php)
-
tags/3.6.3/vendor/composer/autoload_static.php (copied) (copied from polylang/trunk/vendor/composer/autoload_static.php)
-
tags/3.6.3/vendor/composer/installed.json (copied) (copied from polylang/trunk/vendor/composer/installed.json)
-
tags/3.6.3/vendor/composer/installed.php (copied) (copied from polylang/trunk/vendor/composer/installed.php) (2 diffs)
-
tags/3.6.3/vendor/composer/platform_check.php (copied) (copied from polylang/trunk/vendor/composer/platform_check.php)
-
trunk/frontend/frontend-filters-search.php (modified) (2 diffs)
-
trunk/include/language.php (modified) (3 diffs)
-
trunk/modules/wpml/wpml-compat.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.3/frontend/frontend-filters-search.php
r3067374 r3103870 89 89 90 90 /** 91 * Adds the language information in admin bar search form91 * Adds the language information in the admin bar search form. 92 92 * 93 93 * @since 1.2 … … 96 96 */ 97 97 public function add_admin_bar_menus() { 98 remove_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 ); 99 add_action( 'admin_bar_menu', array( $this, 'admin_bar_search_menu' ), 4 ); 98 // Backward compatibility with WP < 6.6. The priority was 4 before this version, 9999 since then. 99 $priority = has_action( 'admin_bar_menu', 'wp_admin_bar_search_menu' ); 100 if ( ! is_int( $priority ) ) { 101 return; 102 } 103 104 remove_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', $priority ); 105 add_action( 'admin_bar_menu', array( $this, 'admin_bar_search_menu' ), $priority ); 100 106 } 101 107 -
polylang/tags/3.6.3/include/language.php
r3042028 r3103870 374 374 */ 375 375 public static function get_flag_informations( $code ) { 376 $flag = array( 'url' => '' ); 376 $default_flag = array( 377 'url' => '', 378 'src' => '', 379 ); 377 380 378 381 // Polylang builtin flags. 379 382 if ( ! empty( $code ) && is_readable( POLYLANG_DIR . ( $file = '/flags/' . $code . '.png' ) ) ) { 380 $ flag['url'] = plugins_url( $file, POLYLANG_FILE );383 $default_flag['url'] = plugins_url( $file, POLYLANG_FILE ); 381 384 382 385 // If base64 encoded flags are preferred. … … 384 387 $imagesize = getimagesize( POLYLANG_DIR . $file ); 385 388 if ( is_array( $imagesize ) ) { 386 list( $ flag['width'], $flag['height'] ) = $imagesize;389 list( $default_flag['width'], $default_flag['height'] ) = $imagesize; 387 390 } 388 $file_contents = file_get_contents( POLYLANG_DIR . $file ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents389 $ flag['src'] = 'data:image/png;base64,' . base64_encode( $file_contents ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode391 $file_contents = file_get_contents( POLYLANG_DIR . $file ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents 392 $default_flag['src'] = 'data:image/png;base64,' . base64_encode( $file_contents ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode 390 393 } 391 394 } … … 406 409 * @param string $code Flag code. 407 410 */ 408 $flag = apply_filters( 'pll_flag', $ flag, $code );411 $flag = apply_filters( 'pll_flag', $default_flag, $code ); 409 412 410 413 $flag['url'] = esc_url_raw( $flag['url'] ); 411 414 412 if ( empty( $flag['src'] ) ) {415 if ( empty( $flag['src'] ) || ( $flag['src'] === $default_flag['src'] && $flag['url'] !== $default_flag['url'] ) ) { 413 416 $flag['src'] = esc_url( set_url_scheme( $flag['url'], 'relative' ) ); 414 417 } -
polylang/tags/3.6.3/modules/wpml/wpml-compat.php
r2907847 r3103870 97 97 /** 98 98 * Unlike pll_register_string, icl_register_string stores the string in database 99 * so we need to do the same as some plugins or themes may expect this 100 * we use a serialized option to do this99 * so we need to do the same as some plugins or themes may expect this. 100 * We use a serialized option to store these strings. 101 101 * 102 102 * @since 1.0.2 103 103 * 104 * @param string $context The group in which the string is registered.105 * @param string $name A unique name for the string.106 * @param string $string The string to register.104 * @param string|string[] $context The group in which the string is registered. 105 * @param string $name A unique name for the string. 106 * @param string $string The string to register. 107 107 * @return void 108 108 */ … … 110 110 if ( ! $string || ! is_scalar( $string ) ) { 111 111 return; 112 } 113 114 /* 115 * WPML accepts arrays as context and internally converts them to strings. 116 * See WPML_Register_String_Filter::truncate_name_and_context(). 117 * This possibility is used by Types. 118 */ 119 if ( is_array( $context ) ) { 120 $name = isset( $context['context'] ) ? $name . $context['context'] : $name; 121 $context = $context['domain'] ?? ''; 112 122 } 113 123 -
polylang/tags/3.6.3/polylang.php
r3096618 r3103870 11 11 * Plugin URI: https://polylang.pro 12 12 * Description: Adds multilingual capability to WordPress 13 * Version: 3.6. 213 * Version: 3.6.3 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. 2' );56 define( 'POLYLANG_VERSION', '3.6.3' ); 57 57 define( 'PLL_MIN_WP_VERSION', '6.2' ); 58 58 define( 'PLL_MIN_PHP_VERSION', '7.0' ); -
polylang/tags/3.6.3/readme.txt
r3096618 r3103870 6 6 Tested up to: 6.5 7 7 Requires PHP: 7.0 8 Stable tag: 3.6. 28 Stable tag: 3.6.3 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 105 105 106 106 == Changelog == 107 108 = 3.6.3 (2024-06-18) = 109 110 * Pro: Fix locale fallback for translations loaded just in time (requires WP 6.6) 111 * Allow to pass an array as context to icl_register_string() #1497 112 * Fix admin bar search menu in WP 6.6 #1496 113 * Fix a regression in the usage of the filter pll_flag #1489 107 114 108 115 = 3.6.2 (2024-06-03) = -
polylang/tags/3.6.3/vendor/composer/installed.php
r3096618 r3103870 4 4 'pretty_version' => '3.6.x-dev', 5 5 'version' => '3.6.9999999.9999999-dev', 6 'reference' => ' 4ccb4bed5fb87bccf22ce8d829c96fc1719b50fa',6 'reference' => '2101ac600a9cdde6cb85a5e170b29e92bd4c9492', 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' => ' 4ccb4bed5fb87bccf22ce8d829c96fc1719b50fa',16 'reference' => '2101ac600a9cdde6cb85a5e170b29e92bd4c9492', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
polylang/trunk/frontend/frontend-filters-search.php
r3067374 r3103870 89 89 90 90 /** 91 * Adds the language information in admin bar search form91 * Adds the language information in the admin bar search form. 92 92 * 93 93 * @since 1.2 … … 96 96 */ 97 97 public function add_admin_bar_menus() { 98 remove_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', 4 ); 99 add_action( 'admin_bar_menu', array( $this, 'admin_bar_search_menu' ), 4 ); 98 // Backward compatibility with WP < 6.6. The priority was 4 before this version, 9999 since then. 99 $priority = has_action( 'admin_bar_menu', 'wp_admin_bar_search_menu' ); 100 if ( ! is_int( $priority ) ) { 101 return; 102 } 103 104 remove_action( 'admin_bar_menu', 'wp_admin_bar_search_menu', $priority ); 105 add_action( 'admin_bar_menu', array( $this, 'admin_bar_search_menu' ), $priority ); 100 106 } 101 107 -
polylang/trunk/include/language.php
r3042028 r3103870 374 374 */ 375 375 public static function get_flag_informations( $code ) { 376 $flag = array( 'url' => '' ); 376 $default_flag = array( 377 'url' => '', 378 'src' => '', 379 ); 377 380 378 381 // Polylang builtin flags. 379 382 if ( ! empty( $code ) && is_readable( POLYLANG_DIR . ( $file = '/flags/' . $code . '.png' ) ) ) { 380 $ flag['url'] = plugins_url( $file, POLYLANG_FILE );383 $default_flag['url'] = plugins_url( $file, POLYLANG_FILE ); 381 384 382 385 // If base64 encoded flags are preferred. … … 384 387 $imagesize = getimagesize( POLYLANG_DIR . $file ); 385 388 if ( is_array( $imagesize ) ) { 386 list( $ flag['width'], $flag['height'] ) = $imagesize;389 list( $default_flag['width'], $default_flag['height'] ) = $imagesize; 387 390 } 388 $file_contents = file_get_contents( POLYLANG_DIR . $file ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents389 $ flag['src'] = 'data:image/png;base64,' . base64_encode( $file_contents ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode391 $file_contents = file_get_contents( POLYLANG_DIR . $file ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents 392 $default_flag['src'] = 'data:image/png;base64,' . base64_encode( $file_contents ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode 390 393 } 391 394 } … … 406 409 * @param string $code Flag code. 407 410 */ 408 $flag = apply_filters( 'pll_flag', $ flag, $code );411 $flag = apply_filters( 'pll_flag', $default_flag, $code ); 409 412 410 413 $flag['url'] = esc_url_raw( $flag['url'] ); 411 414 412 if ( empty( $flag['src'] ) ) {415 if ( empty( $flag['src'] ) || ( $flag['src'] === $default_flag['src'] && $flag['url'] !== $default_flag['url'] ) ) { 413 416 $flag['src'] = esc_url( set_url_scheme( $flag['url'], 'relative' ) ); 414 417 } -
polylang/trunk/modules/wpml/wpml-compat.php
r2907847 r3103870 97 97 /** 98 98 * Unlike pll_register_string, icl_register_string stores the string in database 99 * so we need to do the same as some plugins or themes may expect this 100 * we use a serialized option to do this99 * so we need to do the same as some plugins or themes may expect this. 100 * We use a serialized option to store these strings. 101 101 * 102 102 * @since 1.0.2 103 103 * 104 * @param string $context The group in which the string is registered.105 * @param string $name A unique name for the string.106 * @param string $string The string to register.104 * @param string|string[] $context The group in which the string is registered. 105 * @param string $name A unique name for the string. 106 * @param string $string The string to register. 107 107 * @return void 108 108 */ … … 110 110 if ( ! $string || ! is_scalar( $string ) ) { 111 111 return; 112 } 113 114 /* 115 * WPML accepts arrays as context and internally converts them to strings. 116 * See WPML_Register_String_Filter::truncate_name_and_context(). 117 * This possibility is used by Types. 118 */ 119 if ( is_array( $context ) ) { 120 $name = isset( $context['context'] ) ? $name . $context['context'] : $name; 121 $context = $context['domain'] ?? ''; 112 122 } 113 123 -
polylang/trunk/polylang.php
r3096618 r3103870 11 11 * Plugin URI: https://polylang.pro 12 12 * Description: Adds multilingual capability to WordPress 13 * Version: 3.6. 213 * Version: 3.6.3 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. 2' );56 define( 'POLYLANG_VERSION', '3.6.3' ); 57 57 define( 'PLL_MIN_WP_VERSION', '6.2' ); 58 58 define( 'PLL_MIN_PHP_VERSION', '7.0' ); -
polylang/trunk/readme.txt
r3096618 r3103870 6 6 Tested up to: 6.5 7 7 Requires PHP: 7.0 8 Stable tag: 3.6. 28 Stable tag: 3.6.3 9 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 105 105 106 106 == Changelog == 107 108 = 3.6.3 (2024-06-18) = 109 110 * Pro: Fix locale fallback for translations loaded just in time (requires WP 6.6) 111 * Allow to pass an array as context to icl_register_string() #1497 112 * Fix admin bar search menu in WP 6.6 #1496 113 * Fix a regression in the usage of the filter pll_flag #1489 107 114 108 115 = 3.6.2 (2024-06-03) = -
polylang/trunk/vendor/composer/installed.php
r3096618 r3103870 4 4 'pretty_version' => '3.6.x-dev', 5 5 'version' => '3.6.9999999.9999999-dev', 6 'reference' => ' 4ccb4bed5fb87bccf22ce8d829c96fc1719b50fa',6 'reference' => '2101ac600a9cdde6cb85a5e170b29e92bd4c9492', 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' => ' 4ccb4bed5fb87bccf22ce8d829c96fc1719b50fa',16 'reference' => '2101ac600a9cdde6cb85a5e170b29e92bd4c9492', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.