Plugin Directory

Changeset 3067374

Timestamp:
04/09/2024 08:07:50 AM (4 months ago)
Author:
Chouby
Message:

Version 3.6.1

Location:
polylang
Files:
9 edited
166 copied

Legend:

Unmodified
Added
Removed
  • polylang/tags/3.6.1/frontend/frontend-filters-search.php

    r2974283 r3067374  
    7070        if ( $this->links_model->using_permalinks ) {
    7171            // Take care to modify only the url in the <form> tag.
    72             preg_match( '#<form.+?>#', $form, $matches );
     72            preg_match( '#<form.+?>#', $form, $matches );
    7373            $old = reset( $matches );
    7474            if ( empty( $old ) ) {
  • polylang/tags/3.6.1/include/cache.php

    r3042028 r3067374  
    6565     */
    6666    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
    7069        return $data;
    7170    }
  • polylang/tags/3.6.1/include/links-directory.php

    r2979957 r3067374  
    4242
    4343        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         }
    5044    }
    5145
     
    145139        $slug = $this->options['default_lang'] === $language && $this->options['hide_default'] ? '' : '/' . $this->root . $base . $language;
    146140        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.2
    153      *
    154      * @return void
    155      */
    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         }
    161141    }
    162142
     
    178158            return;
    179159        }
    180 
    181         add_filter( 'language_rewrite_rules', '__return_empty_array' ); // Suppress the rules created by WordPress for our taxonomy.
    182160
    183161        foreach ( $this->get_rewrite_rules_filters_with_callbacks() as $rule => $callback ) {
  • polylang/tags/3.6.1/include/translated-post.php

    r3042028 r3067374  
    147147            $post_types = (array) apply_filters( 'pll_get_post_types', $post_types, false );
    148148
    149             if ( did_action( 'after_setup_theme' ) ) {
     149            if ( did_action( 'after_setup_theme' ) ) {
    150150                $this->model->cache->set( 'post_types', $post_types );
    151151            }
     
    193193                'publicly_queryable' => true, // Since WP 4.5.
    194194                'query_var'          => 'lang',
    195                 'rewrite'            => $this->model->options['force_lang'] < 2, // No rewrite for domains and sub-domains.
     195                'rewrite'            => .
    196196                '_pll'               => true, // Polylang taxonomy.
    197197            )
  • polylang/tags/3.6.1/include/translated-term.php

    r3042028 r3067374  
    215215            $taxonomies = (array) apply_filters( 'pll_get_taxonomies', $taxonomies, false );
    216216
    217             if ( did_action( 'after_setup_theme' ) ) {
     217            if ( did_action( 'after_setup_theme' ) ) {
    218218                $this->model->cache->set( 'taxonomies', $taxonomies );
    219219            }
  • polylang/tags/3.6.1/modules/sync/sync-metas.php

    r3042028 r3067374  
    7373     * @return void
    7474     */
    75     protected function remove_all_meta_actions() {
     75    p function remove_all_meta_actions() {
    7676        $this->remove_add_meta_action();
    7777
     
    101101     * @return void
    102102     */
    103     protected function add_all_meta_actions() {
     103    p function add_all_meta_actions() {
    104104        $this->restore_add_meta_action();
    105105
  • polylang/tags/3.6.1/polylang.php

    r3053182 r3067374  
    1111 * Plugin URI:        https://polylang.pro
    1212 * Description:       Adds multilingual capability to WordPress
    13  * Version:           3.6
     13 * Version:           3.6
    1414 * Requires at least: 6.2
    1515 * Requires PHP:      7.0
     
    5454} else {
    5555    // Go on loading the plugin
    56     define( 'POLYLANG_VERSION', '3.6' );
     56    define( 'POLYLANG_VERSION', '3.6' );
    5757    define( 'PLL_MIN_WP_VERSION', '6.2' );
    5858    define( 'PLL_MIN_PHP_VERSION', '7.0' );
  • polylang/tags/3.6.1/readme.txt

    r3054524 r3067374  
    66Tested up to: 6.5
    77Requires PHP: 7.0
    8 Stable tag: 3.6
     8Stable tag: 3.6
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    105105== Changelog ==
    106106
     107
     108
     109
     110
     111
     112
     113
    107114= 3.6 (2024-03-18) =
    108115
  • polylang/tags/3.6.1/vendor/composer/installed.php

    r3053182 r3067374  
    44        'pretty_version' => '3.6.x-dev',
    55        'version' => '3.6.9999999.9999999-dev',
    6         'reference' => 'fbc31631358b8ad3d3432960997fa601db368b8a',
     6        'reference' => '',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => '3.6.x-dev',
    1515            'version' => '3.6.9999999.9999999-dev',
    16             'reference' => 'fbc31631358b8ad3d3432960997fa601db368b8a',
     16            'reference' => '',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • polylang/trunk/frontend/frontend-filters-search.php

    r2974283 r3067374  
    7070        if ( $this->links_model->using_permalinks ) {
    7171            // Take care to modify only the url in the <form> tag.
    72             preg_match( '#<form.+?>#', $form, $matches );
     72            preg_match( '#<form.+?>#', $form, $matches );
    7373            $old = reset( $matches );
    7474            if ( empty( $old ) ) {
  • polylang/trunk/include/cache.php

    r3042028 r3067374  
    6565     */
    6666    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
    7069        return $data;
    7170    }
  • polylang/trunk/include/links-directory.php

    r2979957 r3067374  
    4242
    4343        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         }
    5044    }
    5145
     
    145139        $slug = $this->options['default_lang'] === $language && $this->options['hide_default'] ? '' : '/' . $this->root . $base . $language;
    146140        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.2
    153      *
    154      * @return void
    155      */
    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         }
    161141    }
    162142
     
    178158            return;
    179159        }
    180 
    181         add_filter( 'language_rewrite_rules', '__return_empty_array' ); // Suppress the rules created by WordPress for our taxonomy.
    182160
    183161        foreach ( $this->get_rewrite_rules_filters_with_callbacks() as $rule => $callback ) {
  • polylang/trunk/include/translated-post.php

    r3042028 r3067374  
    147147            $post_types = (array) apply_filters( 'pll_get_post_types', $post_types, false );
    148148
    149             if ( did_action( 'after_setup_theme' ) ) {
     149            if ( did_action( 'after_setup_theme' ) ) {
    150150                $this->model->cache->set( 'post_types', $post_types );
    151151            }
     
    193193                'publicly_queryable' => true, // Since WP 4.5.
    194194                'query_var'          => 'lang',
    195                 'rewrite'            => $this->model->options['force_lang'] < 2, // No rewrite for domains and sub-domains.
     195                'rewrite'            => .
    196196                '_pll'               => true, // Polylang taxonomy.
    197197            )
  • polylang/trunk/include/translated-term.php

    r3042028 r3067374  
    215215            $taxonomies = (array) apply_filters( 'pll_get_taxonomies', $taxonomies, false );
    216216
    217             if ( did_action( 'after_setup_theme' ) ) {
     217            if ( did_action( 'after_setup_theme' ) ) {
    218218                $this->model->cache->set( 'taxonomies', $taxonomies );
    219219            }
  • polylang/trunk/modules/sync/sync-metas.php

    r3042028 r3067374  
    7373     * @return void
    7474     */
    75     protected function remove_all_meta_actions() {
     75    p function remove_all_meta_actions() {
    7676        $this->remove_add_meta_action();
    7777
     
    101101     * @return void
    102102     */
    103     protected function add_all_meta_actions() {
     103    p function add_all_meta_actions() {
    104104        $this->restore_add_meta_action();
    105105
  • polylang/trunk/polylang.php

    r3053182 r3067374  
    1111 * Plugin URI:        https://polylang.pro
    1212 * Description:       Adds multilingual capability to WordPress
    13  * Version:           3.6
     13 * Version:           3.6
    1414 * Requires at least: 6.2
    1515 * Requires PHP:      7.0
     
    5454} else {
    5555    // Go on loading the plugin
    56     define( 'POLYLANG_VERSION', '3.6' );
     56    define( 'POLYLANG_VERSION', '3.6' );
    5757    define( 'PLL_MIN_WP_VERSION', '6.2' );
    5858    define( 'PLL_MIN_PHP_VERSION', '7.0' );
  • polylang/trunk/readme.txt

    r3054524 r3067374  
    66Tested up to: 6.5
    77Requires PHP: 7.0
    8 Stable tag: 3.6
     8Stable tag: 3.6
    99License: GPLv3 or later
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    105105== Changelog ==
    106106
     107
     108
     109
     110
     111
     112
     113
    107114= 3.6 (2024-03-18) =
    108115
  • polylang/trunk/vendor/composer/installed.php

    r3053182 r3067374  
    44        'pretty_version' => '3.6.x-dev',
    55        'version' => '3.6.9999999.9999999-dev',
    6         'reference' => 'fbc31631358b8ad3d3432960997fa601db368b8a',
     6        'reference' => '',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => '3.6.x-dev',
    1515            'version' => '3.6.9999999.9999999-dev',
    16             'reference' => 'fbc31631358b8ad3d3432960997fa601db368b8a',
     16            'reference' => '',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.