Plugin Directory

Changeset 3166238


Ignore:
Timestamp:
10/10/2024 06:12:43 AM (15 months ago)
Author:
Toro_Unit
Message:

Update to version 3.5.3 from GitHub

Location:
custom-post-type-permalinks
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • custom-post-type-permalinks/tags/3.5.3/.github/workflows/test-and-release.yml

    r2957454 r3166238  
    22
    33on:
     4  pull_request:
    45  push:
    5     tags:
    6       - '*'
    7     branches:
    8       - master
    9       - main
    10   pull_request:
    11     branches:
    12       - master
    13       - main
     6    branches: [ master ]
     7    tags: ['*']
    148
    159jobs:
     
    3731            wp: trunk
    3832          - php: 8.0
    39             wp: 6.2
     33            wp: 6.5
    4034          - php: 7.4
    41             wp: 6.2
     35            wp: 6.5
    4236          - php: 8.0
    4337            wp: 6.1
     
    4741    name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test
    4842    steps:
    49       - uses: actions/checkout@v3
     43      - uses: actions/checkout@v4
    5044
    5145      - name: Setup PHP
     
    8680    name: PHP lint
    8781    steps:
    88       - uses: actions/checkout@v3
     82      - uses: actions/checkout@v4
    8983      - name: Setup PHP
    9084        uses: shivammathur/setup-php@v2
     
    115109    needs: [test,lint]
    116110    steps:
    117       - uses: actions/checkout@v3
     111      - uses: actions/checkout@v4
    118112      - name: Build
    119113        if: contains(github.ref, 'tags/')
  • custom-post-type-permalinks/tags/3.5.3/CPTP/Module/Permalink.php

    r2449783 r3166238  
    404404        }
    405405
     406        if ( ! isset( $post_type_obj->rewrite['slug'] ) || ! isset( $post_type_obj->rewrite['with_front'] ) ) {
     407            return $termlink;
     408        }
     409
    406410        $slug       = $post_type_obj->rewrite['slug'];
    407411        $with_front = $post_type_obj->rewrite['with_front'];
     
    415419        }
    416420
    417         if ( ! $taxonomy->rewrite['hierarchical'] ) {
     421        if ( false !== $taxonomy->rewrite && ! $taxonomy->rewrite['hierarchical'] ) {
    418422            $termlink = str_replace( $term->slug . '/', CPTP_Util::get_taxonomy_parents_slug( $term->term_id, $taxonomy->name, '/', true ), $termlink );
    419423        }
  • custom-post-type-permalinks/tags/3.5.3/CPTP/Module/Rewrite.php

    r2347047 r3166238  
    8282            if ( is_string( $args->has_archive ) ) {
    8383                $slug = $args->has_archive;
    84             };
     84            }
    8585
    8686            if ( $args->rewrite['with_front'] ) {
     
    162162            if ( ! empty( $post_type_obj->has_archive ) && is_string( $post_type_obj->has_archive ) ) {
    163163                $slug = $post_type_obj->has_archive;
    164             };
     164            }
    165165
    166166            if ( ! empty( $post_type_obj->rewrite['with_front'] ) ) {
  • custom-post-type-permalinks/tags/3.5.3/custom-post-type-permalinks.php

    r2957454 r3166238  
    66 * Author: Toro_Unit
    77 * Author URI: https://torounit.com/
    8  * Version: 3.5.2
     8 * Version: 3.5.3
    99 * Text Domain: custom-post-type-permalinks
    1010 * License: GPL2 or later
    1111 * Domain Path: /language/
    12  * Requires at least: 5.2
    13  * Requires PHP: 5.6
     12 * Requires at least: 6.1
     13 * Requires PHP: 7.4
    1414 *
    1515 * @package Custom_Post_Type_Permalinks
    16  * @version 3.5.2
     16 * @version 3.5.3
    1717 */
    1818
  • custom-post-type-permalinks/tags/3.5.3/readme.txt

    r2957454 r3166238  
    55Tags:              permalink, url, link, address, custom post type 
    66Requires at least: 6.1 
    7 Tested up to:      6.3 
     7Tested up to:      6.6 
    88Requires PHP:      7.4 
    99License:           GPLv2 or Later 
    1010License URI:       http://www.gnu.org/licenses/gpl-2.0.txt 
    11 Stable tag:        3.5.2
     11Stable tag:        3.5.3
    1212
    1313
     
    8484== Changelog ==
    8585
     86= 3.5.3 =
     87* Tested WP 6.6
     88* Fix notices for php 8.
     89
    8690= 3.5.0 =
    8791* Tested WP 6.1 / 6.2 / 6.3
  • custom-post-type-permalinks/trunk/.github/workflows/test-and-release.yml

    r2957454 r3166238  
    22
    33on:
     4  pull_request:
    45  push:
    5     tags:
    6       - '*'
    7     branches:
    8       - master
    9       - main
    10   pull_request:
    11     branches:
    12       - master
    13       - main
     6    branches: [ master ]
     7    tags: ['*']
    148
    159jobs:
     
    3731            wp: trunk
    3832          - php: 8.0
    39             wp: 6.2
     33            wp: 6.5
    4034          - php: 7.4
    41             wp: 6.2
     35            wp: 6.5
    4236          - php: 8.0
    4337            wp: 6.1
     
    4741    name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test
    4842    steps:
    49       - uses: actions/checkout@v3
     43      - uses: actions/checkout@v4
    5044
    5145      - name: Setup PHP
     
    8680    name: PHP lint
    8781    steps:
    88       - uses: actions/checkout@v3
     82      - uses: actions/checkout@v4
    8983      - name: Setup PHP
    9084        uses: shivammathur/setup-php@v2
     
    115109    needs: [test,lint]
    116110    steps:
    117       - uses: actions/checkout@v3
     111      - uses: actions/checkout@v4
    118112      - name: Build
    119113        if: contains(github.ref, 'tags/')
  • custom-post-type-permalinks/trunk/CPTP/Module/Permalink.php

    r2449783 r3166238  
    404404        }
    405405
     406        if ( ! isset( $post_type_obj->rewrite['slug'] ) || ! isset( $post_type_obj->rewrite['with_front'] ) ) {
     407            return $termlink;
     408        }
     409
    406410        $slug       = $post_type_obj->rewrite['slug'];
    407411        $with_front = $post_type_obj->rewrite['with_front'];
     
    415419        }
    416420
    417         if ( ! $taxonomy->rewrite['hierarchical'] ) {
     421        if ( false !== $taxonomy->rewrite && ! $taxonomy->rewrite['hierarchical'] ) {
    418422            $termlink = str_replace( $term->slug . '/', CPTP_Util::get_taxonomy_parents_slug( $term->term_id, $taxonomy->name, '/', true ), $termlink );
    419423        }
  • custom-post-type-permalinks/trunk/CPTP/Module/Rewrite.php

    r2347047 r3166238  
    8282            if ( is_string( $args->has_archive ) ) {
    8383                $slug = $args->has_archive;
    84             };
     84            }
    8585
    8686            if ( $args->rewrite['with_front'] ) {
     
    162162            if ( ! empty( $post_type_obj->has_archive ) && is_string( $post_type_obj->has_archive ) ) {
    163163                $slug = $post_type_obj->has_archive;
    164             };
     164            }
    165165
    166166            if ( ! empty( $post_type_obj->rewrite['with_front'] ) ) {
  • custom-post-type-permalinks/trunk/custom-post-type-permalinks.php

    r2957454 r3166238  
    66 * Author: Toro_Unit
    77 * Author URI: https://torounit.com/
    8  * Version: 3.5.2
     8 * Version: 3.5.3
    99 * Text Domain: custom-post-type-permalinks
    1010 * License: GPL2 or later
    1111 * Domain Path: /language/
    12  * Requires at least: 5.2
    13  * Requires PHP: 5.6
     12 * Requires at least: 6.1
     13 * Requires PHP: 7.4
    1414 *
    1515 * @package Custom_Post_Type_Permalinks
    16  * @version 3.5.2
     16 * @version 3.5.3
    1717 */
    1818
  • custom-post-type-permalinks/trunk/readme.txt

    r2957454 r3166238  
    55Tags:              permalink, url, link, address, custom post type 
    66Requires at least: 6.1 
    7 Tested up to:      6.3 
     7Tested up to:      6.6 
    88Requires PHP:      7.4 
    99License:           GPLv2 or Later 
    1010License URI:       http://www.gnu.org/licenses/gpl-2.0.txt 
    11 Stable tag:        3.5.2
     11Stable tag:        3.5.3
    1212
    1313
     
    8484== Changelog ==
    8585
     86= 3.5.3 =
     87* Tested WP 6.6
     88* Fix notices for php 8.
     89
    8690= 3.5.0 =
    8791* Tested WP 6.1 / 6.2 / 6.3
Note: See TracChangeset for help on using the changeset viewer.