Changeset 3367049
- Timestamp:
- 09/24/2025 09:34:47 AM (6 months ago)
- Location:
- custom-permalinks
- Files:
-
- 8 added
- 6 deleted
- 4 edited
- 51 copied
-
tags/3.1.2 (copied) (copied from custom-permalinks/trunk)
-
tags/3.1.2/admin/class-custom-permalinks-admin.php (copied) (copied from custom-permalinks/trunk/admin/class-custom-permalinks-admin.php)
-
tags/3.1.2/admin/class-custom-permalinks-post-types-settings.php (copied) (copied from custom-permalinks/trunk/admin/class-custom-permalinks-post-types-settings.php)
-
tags/3.1.2/admin/class-custom-permalinks-post-types.php (copied) (copied from custom-permalinks/trunk/admin/class-custom-permalinks-post-types.php)
-
tags/3.1.2/admin/class-custom-permalinks-taxonomies.php (copied) (copied from custom-permalinks/trunk/admin/class-custom-permalinks-taxonomies.php)
-
tags/3.1.2/assets/css/about-plugins-2.8.0.min.css (deleted)
-
tags/3.1.2/assets/css/about-plugins-3.1.2.min.css (added)
-
tags/3.1.2/assets/css/post-settings-3.1.2.min.css (added)
-
tags/3.1.2/assets/js/post-settings-3.1.2.min.js (added)
-
tags/3.1.2/assets/js/script-form-2.8.0.min.js (deleted)
-
tags/3.1.2/assets/js/script-form-3.1.2.min.js (added)
-
tags/3.1.2/changelog.txt (copied) (copied from custom-permalinks/trunk/changelog.txt)
-
tags/3.1.2/custom-permalinks.php (copied) (copied from custom-permalinks/trunk/custom-permalinks.php) (1 diff)
-
tags/3.1.2/includes/class-custom-permalinks-form.php (copied) (copied from custom-permalinks/trunk/includes/class-custom-permalinks-form.php)
-
tags/3.1.2/includes/class-custom-permalinks-frontend.php (copied) (copied from custom-permalinks/trunk/includes/class-custom-permalinks-frontend.php) (3 diffs)
-
tags/3.1.2/includes/class-custom-permalinks-generate-post-permalinks.php (copied) (copied from custom-permalinks/trunk/includes/class-custom-permalinks-generate-post-permalinks.php)
-
tags/3.1.2/includes/class-custom-permalinks.php (copied) (copied from custom-permalinks/trunk/includes/class-custom-permalinks.php) (1 diff)
-
tags/3.1.2/languages/custom-permalinks-en_AU.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-en_AU.mo)
-
tags/3.1.2/languages/custom-permalinks-en_AU.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-en_AU.po)
-
tags/3.1.2/languages/custom-permalinks-en_CA.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-en_CA.mo)
-
tags/3.1.2/languages/custom-permalinks-en_CA.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-en_CA.po)
-
tags/3.1.2/languages/custom-permalinks-en_GB.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-en_GB.mo)
-
tags/3.1.2/languages/custom-permalinks-en_GB.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-en_GB.po)
-
tags/3.1.2/languages/custom-permalinks-en_NZ.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-en_NZ.mo)
-
tags/3.1.2/languages/custom-permalinks-en_NZ.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-en_NZ.po)
-
tags/3.1.2/languages/custom-permalinks-es_CL.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_CL.mo)
-
tags/3.1.2/languages/custom-permalinks-es_CL.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_CL.po)
-
tags/3.1.2/languages/custom-permalinks-es_CO.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_CO.mo)
-
tags/3.1.2/languages/custom-permalinks-es_CO.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_CO.po)
-
tags/3.1.2/languages/custom-permalinks-es_EC.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_EC.mo)
-
tags/3.1.2/languages/custom-permalinks-es_EC.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_EC.po)
-
tags/3.1.2/languages/custom-permalinks-es_ES.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_ES.mo)
-
tags/3.1.2/languages/custom-permalinks-es_ES.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_ES.po)
-
tags/3.1.2/languages/custom-permalinks-es_VE.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_VE.mo)
-
tags/3.1.2/languages/custom-permalinks-es_VE.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-es_VE.po)
-
tags/3.1.2/languages/custom-permalinks-fa_IR.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-fa_IR.mo)
-
tags/3.1.2/languages/custom-permalinks-fa_IR.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-fa_IR.po)
-
tags/3.1.2/languages/custom-permalinks-gl_ES.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-gl_ES.mo)
-
tags/3.1.2/languages/custom-permalinks-gl_ES.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-gl_ES.po)
-
tags/3.1.2/languages/custom-permalinks-ja.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-ja.mo)
-
tags/3.1.2/languages/custom-permalinks-ja.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-ja.po)
-
tags/3.1.2/languages/custom-permalinks-nl_BE.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-nl_BE.mo)
-
tags/3.1.2/languages/custom-permalinks-nl_BE.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-nl_BE.po)
-
tags/3.1.2/languages/custom-permalinks-nl_NL.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-nl_NL.mo)
-
tags/3.1.2/languages/custom-permalinks-nl_NL.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-nl_NL.po)
-
tags/3.1.2/languages/custom-permalinks-nl_NL_formal.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-nl_NL_formal.mo)
-
tags/3.1.2/languages/custom-permalinks-nl_NL_formal.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-nl_NL_formal.po)
-
tags/3.1.2/languages/custom-permalinks-ru_RU.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-ru_RU.mo)
-
tags/3.1.2/languages/custom-permalinks-ru_RU.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-ru_RU.po)
-
tags/3.1.2/languages/custom-permalinks-uk.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-uk.mo)
-
tags/3.1.2/languages/custom-permalinks-uk.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-uk.po)
-
tags/3.1.2/languages/custom-permalinks-ur.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-ur.mo)
-
tags/3.1.2/languages/custom-permalinks-ur.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-ur.po)
-
tags/3.1.2/languages/custom-permalinks-zh_TW.mo (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-zh_TW.mo)
-
tags/3.1.2/languages/custom-permalinks-zh_TW.po (copied) (copied from custom-permalinks/trunk/languages/custom-permalinks-zh_TW.po)
-
tags/3.1.2/readme.txt (copied) (copied from custom-permalinks/trunk/readme.txt) (1 diff)
-
tags/3.1.2/uninstall.php (copied) (copied from custom-permalinks/trunk/uninstall.php)
-
trunk/assets/css/about-plugins-3.1.1.min.css (deleted)
-
trunk/assets/css/about-plugins-3.1.2.min.css (added)
-
trunk/assets/css/post-settings-3.1.1.min.css (deleted)
-
trunk/assets/css/post-settings-3.1.2.min.css (added)
-
trunk/assets/js/post-settings-3.1.1.min.js (deleted)
-
trunk/assets/js/post-settings-3.1.2.min.js (added)
-
trunk/assets/js/script-form-3.1.1.min.js (deleted)
-
trunk/assets/js/script-form-3.1.2.min.js (added)
-
trunk/custom-permalinks.php (modified) (1 diff)
-
trunk/includes/class-custom-permalinks-frontend.php (modified) (3 diffs)
-
trunk/includes/class-custom-permalinks.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
custom-permalinks/tags/3.1.2/custom-permalinks.php
r3364450 r3367049 4 4 * Plugin URI: https://www.custompermalinks.com/ 5 5 * Description: Set custom permalinks on a per-post basis. 6 * Version: 3.1. 16 * Version: 3.1.2 7 7 * Requires at least: 2.6 8 8 * Requires PHP: 7.0 -
custom-permalinks/tags/3.1.2/includes/class-custom-permalinks-frontend.php
r3364450 r3367049 690 690 691 691 /** 692 * Trigger safe redirect. 693 * 694 * @since 3.1.2 695 * @access private 696 * 697 * @param string $url Relative URL. 698 * 699 * @return void 700 */ 701 private function safe_redirect( $url ) { 702 $home_url = home_url(); 703 if ( '/' === substr( $home_url, -1 ) ) { 704 wp_safe_redirect( $home_url . $url, 301 ); 705 } else { 706 wp_safe_redirect( $home_url . '/' . $url, 301 ); 707 } 708 709 exit( 0 ); 710 } 711 712 /** 692 713 * Action to redirect to the custom permalink. 693 714 * … … 753 774 // Append any query component. 754 775 $custom_permalink .= strstr( $this->request_uri, '?' ); 755 756 wp_safe_redirect( home_url() . '/' . $custom_permalink, 301 ); 757 exit( 0 ); 776 $this->safe_redirect( $custom_permalink ); 758 777 } 759 778 } else { … … 823 842 // Append any query component. 824 843 $url .= strstr( $this->request_uri, '?' ); 825 826 wp_safe_redirect( home_url() . '/' . $url, 301 ); 827 exit( 0 ); 844 $this->safe_redirect( $url ); 828 845 } 829 846 } -
custom-permalinks/tags/3.1.2/includes/class-custom-permalinks.php
r3364450 r3367049 19 19 * @var string 20 20 */ 21 public $version = '3.1. 1';21 public $version = '3.1.2'; 22 22 23 23 /** -
custom-permalinks/tags/3.1.2/readme.txt
r3364450 r3367049 82 82 == Changelog == 83 83 84 = 3.1.2 - Sep 24, 2025 = 85 86 * Bug: 87 * [Prevent adding slash if `home_url()` contains one](https://github.com/samiahmedsiddiqui/custom-permalinks/pull/136) 88 84 89 = 3.1.1 - Sep 19, 2025 = 85 90 -
custom-permalinks/trunk/custom-permalinks.php
r3364450 r3367049 4 4 * Plugin URI: https://www.custompermalinks.com/ 5 5 * Description: Set custom permalinks on a per-post basis. 6 * Version: 3.1. 16 * Version: 3.1.2 7 7 * Requires at least: 2.6 8 8 * Requires PHP: 7.0 -
custom-permalinks/trunk/includes/class-custom-permalinks-frontend.php
r3364450 r3367049 690 690 691 691 /** 692 * Trigger safe redirect. 693 * 694 * @since 3.1.2 695 * @access private 696 * 697 * @param string $url Relative URL. 698 * 699 * @return void 700 */ 701 private function safe_redirect( $url ) { 702 $home_url = home_url(); 703 if ( '/' === substr( $home_url, -1 ) ) { 704 wp_safe_redirect( $home_url . $url, 301 ); 705 } else { 706 wp_safe_redirect( $home_url . '/' . $url, 301 ); 707 } 708 709 exit( 0 ); 710 } 711 712 /** 692 713 * Action to redirect to the custom permalink. 693 714 * … … 753 774 // Append any query component. 754 775 $custom_permalink .= strstr( $this->request_uri, '?' ); 755 756 wp_safe_redirect( home_url() . '/' . $custom_permalink, 301 ); 757 exit( 0 ); 776 $this->safe_redirect( $custom_permalink ); 758 777 } 759 778 } else { … … 823 842 // Append any query component. 824 843 $url .= strstr( $this->request_uri, '?' ); 825 826 wp_safe_redirect( home_url() . '/' . $url, 301 ); 827 exit( 0 ); 844 $this->safe_redirect( $url ); 828 845 } 829 846 } -
custom-permalinks/trunk/includes/class-custom-permalinks.php
r3364450 r3367049 19 19 * @var string 20 20 */ 21 public $version = '3.1. 1';21 public $version = '3.1.2'; 22 22 23 23 /** -
custom-permalinks/trunk/readme.txt
r3364450 r3367049 82 82 == Changelog == 83 83 84 = 3.1.2 - Sep 24, 2025 = 85 86 * Bug: 87 * [Prevent adding slash if `home_url()` contains one](https://github.com/samiahmedsiddiqui/custom-permalinks/pull/136) 88 84 89 = 3.1.1 - Sep 19, 2025 = 85 90
Note: See TracChangeset
for help on using the changeset viewer.