Changeset 3067374
- Timestamp:
- 04/09/2024 08:07:50 AM (4 months ago)
- Location:
- polylang
- Files:
-
- 9 edited
- 166 copied
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.+?>#', $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' ) ) { 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' => . 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' ) ) { 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 p 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 p 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 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' ); 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 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 108 109 110 111 112 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' => '', 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' => '', 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.+?>#', $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' ) ) { 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' => . 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' ) ) { 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 p 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 p 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 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' ); 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 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 108 109 110 111 112 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' => '', 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' => '', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.