Plugin Directory

Changeset 2996205


Ignore:
Timestamp:
11/15/2023 07:09:50 AM (2 years ago)
Author:
Tarosky
Message:

Update to version 1.1.6 from GitHub

Location:
rich-taxonomy
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • rich-taxonomy/tags/1.1.6/functions.php

    r2631284 r2996205  
    99 * Get taxonomy page object in
    1010 *
     11 * @param bool $only_first    If false, include each paged archive.
     12 * @param bool $include_admin If true, get taxonomy page even if in admin.
    1113 * @retun WP_Post|null
    1214 */
    13 function rich_taxonomy_current_post() {
     15function rich_taxonomy_current_post( $only_first = true, $include_admin = false ) {
    1416    global $wp_query;
    15     return \Tarosky\RichTaxonomy\Controller\Rewrites::get_instance()->get_taxonomy_page_from_query( $wp_query, false, false );
     17    return \Tarosky\RichTaxonomy\Controller\Rewrites::get_instance()->get_taxonomy_page_from_query( $wp_query, $include_admin, $only_first );
    1618}
    1719
  • rich-taxonomy/tags/1.1.6/readme.txt

    r2995569 r2996205  
    66Requires at least: 5.9 
    77Requires PHP: 7.0 
    8 Stable Tag: 1.1.5
     8Stable Tag: 1.1.6
    99License: GPLv3 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.txt
  • rich-taxonomy/tags/1.1.6/rich-taxonomy.php

    r2995569 r2996205  
    55Plugin URI: https://wordpress.org/plugins/rich-taxonomy/
    66Author: Tarosky INC.
    7 Version: 1.1.5
     7Version: 1.1.6
    88Author URI: https://tarosky.co.jp/
    99License: GPL3 or later
  • rich-taxonomy/tags/1.1.6/src/Tarosky/RichTaxonomy/Controller/Rewrites.php

    r2995526 r2996205  
    101101        }
    102102        // Should override?
    103         $post            = $this->get_post( $term, true );
     103        $post            = $this->get_post( $term, ! current_user_can( 'edit_posts' ) );
    104104        $should_override = apply_filters( 'rich_taxonomy_override', true, $post, $query );
    105105        if ( ! $should_override ) {
  • rich-taxonomy/tags/1.1.6/src/Tarosky/RichTaxonomy/Utility/PageAccessor.php

    r2995569 r2996205  
    112112        return $post_id;
    113113    }
    114 
    115     /**
    116      * Get WP_Post if current page is a overridden.
    117      *
    118      * @return null|\WP_Post
    119      */
    120     public function get_overriding_page() {
    121         if ( ! ( is_category() || is_tag() || is_tax() ) ) {
    122             return null;
    123         }
    124         if ( ! Setting::get_instance()->is_rich( get_queried_object()->taxonomy ) ) {
    125             // Not a rich taxonomy.
    126             return null;
    127         }
    128         // This may be a rich taxonomy page.
    129         return $this->get_post( get_queried_object(), ! current_user_can( 'edit_posts' ) );
    130     }
    131114}
  • rich-taxonomy/tags/1.1.6/src/Tarosky/RichTaxonomy/Vendor/TaroCustomStyle.php

    r2995569 r2996205  
    3939     */
    4040    public function add_style_group( $styles ) {
    41         $rich_taxonomy_page = $this->get_overriding_page();
     41        $rich_taxonomy_page = rich_taxonomy_current_post();
    4242        if ( ! $rich_taxonomy_page ) {
    4343            return $styles;
     
    6060     */
    6161    public function override_rich_taxonomy_page( $object ) {
    62         return $this->get_overriding_page() ?: $object;
     62        return rich_taxonomy_current_post() ?: $object;
    6363    }
    6464}
  • rich-taxonomy/tags/1.1.6/vendor/composer/installed.php

    r2995569 r2996205  
    22    'root' => array(
    33        'name' => 'tarosky/rich-taxonomy',
    4         'pretty_version' => '1.1.5',
    5         'version' => '1.1.5.0',
    6         'reference' => 'ab61137e9b45842f31ccf89dbb080b9953c49d57',
     4        'pretty_version' => '1.1.6',
     5        'version' => '1.1.6.0',
     6        'reference' => 'be346e10a672c825bcc983bb45cd76f940ff07fb',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'tarosky/rich-taxonomy' => array(
    14             'pretty_version' => '1.1.5',
    15             'version' => '1.1.5.0',
    16             'reference' => 'ab61137e9b45842f31ccf89dbb080b9953c49d57',
     14            'pretty_version' => '1.1.6',
     15            'version' => '1.1.6.0',
     16            'reference' => 'be346e10a672c825bcc983bb45cd76f940ff07fb',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • rich-taxonomy/trunk/functions.php

    r2631284 r2996205  
    99 * Get taxonomy page object in
    1010 *
     11 * @param bool $only_first    If false, include each paged archive.
     12 * @param bool $include_admin If true, get taxonomy page even if in admin.
    1113 * @retun WP_Post|null
    1214 */
    13 function rich_taxonomy_current_post() {
     15function rich_taxonomy_current_post( $only_first = true, $include_admin = false ) {
    1416    global $wp_query;
    15     return \Tarosky\RichTaxonomy\Controller\Rewrites::get_instance()->get_taxonomy_page_from_query( $wp_query, false, false );
     17    return \Tarosky\RichTaxonomy\Controller\Rewrites::get_instance()->get_taxonomy_page_from_query( $wp_query, $include_admin, $only_first );
    1618}
    1719
  • rich-taxonomy/trunk/readme.txt

    r2995569 r2996205  
    66Requires at least: 5.9 
    77Requires PHP: 7.0 
    8 Stable Tag: 1.1.5
     8Stable Tag: 1.1.6
    99License: GPLv3 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.txt
  • rich-taxonomy/trunk/rich-taxonomy.php

    r2995569 r2996205  
    55Plugin URI: https://wordpress.org/plugins/rich-taxonomy/
    66Author: Tarosky INC.
    7 Version: 1.1.5
     7Version: 1.1.6
    88Author URI: https://tarosky.co.jp/
    99License: GPL3 or later
  • rich-taxonomy/trunk/src/Tarosky/RichTaxonomy/Controller/Rewrites.php

    r2995526 r2996205  
    101101        }
    102102        // Should override?
    103         $post            = $this->get_post( $term, true );
     103        $post            = $this->get_post( $term, ! current_user_can( 'edit_posts' ) );
    104104        $should_override = apply_filters( 'rich_taxonomy_override', true, $post, $query );
    105105        if ( ! $should_override ) {
  • rich-taxonomy/trunk/src/Tarosky/RichTaxonomy/Utility/PageAccessor.php

    r2995569 r2996205  
    112112        return $post_id;
    113113    }
    114 
    115     /**
    116      * Get WP_Post if current page is a overridden.
    117      *
    118      * @return null|\WP_Post
    119      */
    120     public function get_overriding_page() {
    121         if ( ! ( is_category() || is_tag() || is_tax() ) ) {
    122             return null;
    123         }
    124         if ( ! Setting::get_instance()->is_rich( get_queried_object()->taxonomy ) ) {
    125             // Not a rich taxonomy.
    126             return null;
    127         }
    128         // This may be a rich taxonomy page.
    129         return $this->get_post( get_queried_object(), ! current_user_can( 'edit_posts' ) );
    130     }
    131114}
  • rich-taxonomy/trunk/src/Tarosky/RichTaxonomy/Vendor/TaroCustomStyle.php

    r2995569 r2996205  
    3939     */
    4040    public function add_style_group( $styles ) {
    41         $rich_taxonomy_page = $this->get_overriding_page();
     41        $rich_taxonomy_page = rich_taxonomy_current_post();
    4242        if ( ! $rich_taxonomy_page ) {
    4343            return $styles;
     
    6060     */
    6161    public function override_rich_taxonomy_page( $object ) {
    62         return $this->get_overriding_page() ?: $object;
     62        return rich_taxonomy_current_post() ?: $object;
    6363    }
    6464}
  • rich-taxonomy/trunk/vendor/composer/installed.php

    r2995569 r2996205  
    22    'root' => array(
    33        'name' => 'tarosky/rich-taxonomy',
    4         'pretty_version' => '1.1.5',
    5         'version' => '1.1.5.0',
    6         'reference' => 'ab61137e9b45842f31ccf89dbb080b9953c49d57',
     4        'pretty_version' => '1.1.6',
     5        'version' => '1.1.6.0',
     6        'reference' => 'be346e10a672c825bcc983bb45cd76f940ff07fb',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'tarosky/rich-taxonomy' => array(
    14             'pretty_version' => '1.1.5',
    15             'version' => '1.1.5.0',
    16             'reference' => 'ab61137e9b45842f31ccf89dbb080b9953c49d57',
     14            'pretty_version' => '1.1.6',
     15            'version' => '1.1.6.0',
     16            'reference' => 'be346e10a672c825bcc983bb45cd76f940ff07fb',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.