Changeset 3166238
- Timestamp:
- 10/10/2024 06:12:43 AM (15 months ago)
- Location:
- custom-post-type-permalinks
- Files:
-
- 10 edited
- 1 copied
-
tags/3.5.3 (copied) (copied from custom-post-type-permalinks/trunk)
-
tags/3.5.3/.github/workflows/test-and-release.yml (modified) (5 diffs)
-
tags/3.5.3/CPTP/Module/Permalink.php (modified) (2 diffs)
-
tags/3.5.3/CPTP/Module/Rewrite.php (modified) (2 diffs)
-
tags/3.5.3/custom-post-type-permalinks.php (modified) (1 diff)
-
tags/3.5.3/readme.txt (modified) (2 diffs)
-
trunk/.github/workflows/test-and-release.yml (modified) (5 diffs)
-
trunk/CPTP/Module/Permalink.php (modified) (2 diffs)
-
trunk/CPTP/Module/Rewrite.php (modified) (2 diffs)
-
trunk/custom-post-type-permalinks.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-post-type-permalinks/tags/3.5.3/.github/workflows/test-and-release.yml
r2957454 r3166238 2 2 3 3 on: 4 pull_request: 4 5 push: 5 tags: 6 - '*' 7 branches: 8 - master 9 - main 10 pull_request: 11 branches: 12 - master 13 - main 6 branches: [ master ] 7 tags: ['*'] 14 8 15 9 jobs: … … 37 31 wp: trunk 38 32 - php: 8.0 39 wp: 6. 233 wp: 6.5 40 34 - php: 7.4 41 wp: 6. 235 wp: 6.5 42 36 - php: 8.0 43 37 wp: 6.1 … … 47 41 name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test 48 42 steps: 49 - uses: actions/checkout@v 343 - uses: actions/checkout@v4 50 44 51 45 - name: Setup PHP … … 86 80 name: PHP lint 87 81 steps: 88 - uses: actions/checkout@v 382 - uses: actions/checkout@v4 89 83 - name: Setup PHP 90 84 uses: shivammathur/setup-php@v2 … … 115 109 needs: [test,lint] 116 110 steps: 117 - uses: actions/checkout@v 3111 - uses: actions/checkout@v4 118 112 - name: Build 119 113 if: contains(github.ref, 'tags/') -
custom-post-type-permalinks/tags/3.5.3/CPTP/Module/Permalink.php
r2449783 r3166238 404 404 } 405 405 406 if ( ! isset( $post_type_obj->rewrite['slug'] ) || ! isset( $post_type_obj->rewrite['with_front'] ) ) { 407 return $termlink; 408 } 409 406 410 $slug = $post_type_obj->rewrite['slug']; 407 411 $with_front = $post_type_obj->rewrite['with_front']; … … 415 419 } 416 420 417 if ( ! $taxonomy->rewrite['hierarchical'] ) {421 if ( false !== $taxonomy->rewrite && ! $taxonomy->rewrite['hierarchical'] ) { 418 422 $termlink = str_replace( $term->slug . '/', CPTP_Util::get_taxonomy_parents_slug( $term->term_id, $taxonomy->name, '/', true ), $termlink ); 419 423 } -
custom-post-type-permalinks/tags/3.5.3/CPTP/Module/Rewrite.php
r2347047 r3166238 82 82 if ( is_string( $args->has_archive ) ) { 83 83 $slug = $args->has_archive; 84 } ;84 } 85 85 86 86 if ( $args->rewrite['with_front'] ) { … … 162 162 if ( ! empty( $post_type_obj->has_archive ) && is_string( $post_type_obj->has_archive ) ) { 163 163 $slug = $post_type_obj->has_archive; 164 } ;164 } 165 165 166 166 if ( ! empty( $post_type_obj->rewrite['with_front'] ) ) { -
custom-post-type-permalinks/tags/3.5.3/custom-post-type-permalinks.php
r2957454 r3166238 6 6 * Author: Toro_Unit 7 7 * Author URI: https://torounit.com/ 8 * Version: 3.5. 28 * Version: 3.5.3 9 9 * Text Domain: custom-post-type-permalinks 10 10 * License: GPL2 or later 11 11 * Domain Path: /language/ 12 * Requires at least: 5.213 * Requires PHP: 5.612 * Requires at least: 6.1 13 * Requires PHP: 7.4 14 14 * 15 15 * @package Custom_Post_Type_Permalinks 16 * @version 3.5. 216 * @version 3.5.3 17 17 */ 18 18 -
custom-post-type-permalinks/tags/3.5.3/readme.txt
r2957454 r3166238 5 5 Tags: permalink, url, link, address, custom post type 6 6 Requires at least: 6.1 7 Tested up to: 6. 37 Tested up to: 6.6 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or Later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt 11 Stable tag: 3.5. 211 Stable tag: 3.5.3 12 12 13 13 … … 84 84 == Changelog == 85 85 86 = 3.5.3 = 87 * Tested WP 6.6 88 * Fix notices for php 8. 89 86 90 = 3.5.0 = 87 91 * Tested WP 6.1 / 6.2 / 6.3 -
custom-post-type-permalinks/trunk/.github/workflows/test-and-release.yml
r2957454 r3166238 2 2 3 3 on: 4 pull_request: 4 5 push: 5 tags: 6 - '*' 7 branches: 8 - master 9 - main 10 pull_request: 11 branches: 12 - master 13 - main 6 branches: [ master ] 7 tags: ['*'] 14 8 15 9 jobs: … … 37 31 wp: trunk 38 32 - php: 8.0 39 wp: 6. 233 wp: 6.5 40 34 - php: 7.4 41 wp: 6. 235 wp: 6.5 42 36 - php: 8.0 43 37 wp: 6.1 … … 47 41 name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test 48 42 steps: 49 - uses: actions/checkout@v 343 - uses: actions/checkout@v4 50 44 51 45 - name: Setup PHP … … 86 80 name: PHP lint 87 81 steps: 88 - uses: actions/checkout@v 382 - uses: actions/checkout@v4 89 83 - name: Setup PHP 90 84 uses: shivammathur/setup-php@v2 … … 115 109 needs: [test,lint] 116 110 steps: 117 - uses: actions/checkout@v 3111 - uses: actions/checkout@v4 118 112 - name: Build 119 113 if: contains(github.ref, 'tags/') -
custom-post-type-permalinks/trunk/CPTP/Module/Permalink.php
r2449783 r3166238 404 404 } 405 405 406 if ( ! isset( $post_type_obj->rewrite['slug'] ) || ! isset( $post_type_obj->rewrite['with_front'] ) ) { 407 return $termlink; 408 } 409 406 410 $slug = $post_type_obj->rewrite['slug']; 407 411 $with_front = $post_type_obj->rewrite['with_front']; … … 415 419 } 416 420 417 if ( ! $taxonomy->rewrite['hierarchical'] ) {421 if ( false !== $taxonomy->rewrite && ! $taxonomy->rewrite['hierarchical'] ) { 418 422 $termlink = str_replace( $term->slug . '/', CPTP_Util::get_taxonomy_parents_slug( $term->term_id, $taxonomy->name, '/', true ), $termlink ); 419 423 } -
custom-post-type-permalinks/trunk/CPTP/Module/Rewrite.php
r2347047 r3166238 82 82 if ( is_string( $args->has_archive ) ) { 83 83 $slug = $args->has_archive; 84 } ;84 } 85 85 86 86 if ( $args->rewrite['with_front'] ) { … … 162 162 if ( ! empty( $post_type_obj->has_archive ) && is_string( $post_type_obj->has_archive ) ) { 163 163 $slug = $post_type_obj->has_archive; 164 } ;164 } 165 165 166 166 if ( ! empty( $post_type_obj->rewrite['with_front'] ) ) { -
custom-post-type-permalinks/trunk/custom-post-type-permalinks.php
r2957454 r3166238 6 6 * Author: Toro_Unit 7 7 * Author URI: https://torounit.com/ 8 * Version: 3.5. 28 * Version: 3.5.3 9 9 * Text Domain: custom-post-type-permalinks 10 10 * License: GPL2 or later 11 11 * Domain Path: /language/ 12 * Requires at least: 5.213 * Requires PHP: 5.612 * Requires at least: 6.1 13 * Requires PHP: 7.4 14 14 * 15 15 * @package Custom_Post_Type_Permalinks 16 * @version 3.5. 216 * @version 3.5.3 17 17 */ 18 18 -
custom-post-type-permalinks/trunk/readme.txt
r2957454 r3166238 5 5 Tags: permalink, url, link, address, custom post type 6 6 Requires at least: 6.1 7 Tested up to: 6. 37 Tested up to: 6.6 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or Later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.txt 11 Stable tag: 3.5. 211 Stable tag: 3.5.3 12 12 13 13 … … 84 84 == Changelog == 85 85 86 = 3.5.3 = 87 * Tested WP 6.6 88 * Fix notices for php 8. 89 86 90 = 3.5.0 = 87 91 * Tested WP 6.1 / 6.2 / 6.3
Note: See TracChangeset
for help on using the changeset viewer.