Changeset 3103870
- Timestamp:
- 06/18/2024 06:34:20 AM (7 weeks ago)
- Location:
- polylang
- Files:
-
- 7 edited
- 166 copied
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 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 $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( $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 $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', $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'] ) ) { 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 * 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 $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 116 117 118 119 120 121 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. 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.' ); 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. 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 109 110 111 112 113 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' => '', 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' => '', 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 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 $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( $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 $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', $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'] ) ) { 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 * 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 $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 116 117 118 119 120 121 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. 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.' ); 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. 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 109 110 111 112 113 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' => '', 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' => '', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.