Changeset 3291611
- Timestamp:
- 05/12/2025 07:38:10 AM (11 months ago)
- Location:
- wowholic-core/trunk
- Files:
-
- 3 edited
-
includes/actions/general.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wowholic-core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wowholic-core/trunk/includes/actions/general.php
r3231152 r3291611 124 124 * Pretty Search URL 125 125 */ 126 add_action( 'init', function () { 127 add_rewrite_rule( 128 '^search/(.+)/?$', 129 'index.php?s=$matches[1]', 130 'top' 131 ); 132 add_rewrite_rule( 133 '^suche/(.+)/?$', 134 'index.php?s=$matches[1]', 135 'top' 136 ); 137 } ); 138 126 139 if ( carbon_get_theme_option( 'wowcore_encrypt_pretty_search_url' ) ) { 127 140 add_action( 'template_redirect', function () { 128 141 if ( is_search() && ! empty( $_GET['s'] ) ) { 129 wp_redirect( home_url( "/search/") . urlencode( get_query_var( 's' ) ) );142 wp_redirect( home_url( __( '/search/' ) ) . urlencode( get_query_var( 's' ) ) ); 130 143 exit(); 131 144 } -
wowholic-core/trunk/readme.txt
r3291403 r3291611 7 7 Requires at least: 5.6 8 8 Tested up to: 6.8.1 9 Stable tag: 1.1. 19 Stable tag: 1.1.2 10 10 Requires PHP: 7.0 11 11 … … 78 78 == Changelog == 79 79 80 = 1.1.2 = 81 Release Date: May 12th, 2025 82 83 * Make pretty search url translatable 84 80 85 = 1.1.1 = 81 86 Release Date: May 9th, 2025 -
wowholic-core/trunk/wowholic-core.php
r3291403 r3291611 4 4 * Plugin URI: https://github.com/Wowholic/CORE 5 5 * Description: Utility functions and options for common tasks in WordPress. 6 * Version: 1.1. 16 * Version: 1.1.2 7 7 * Author: Wowholic 8 8 * Author URI: https://wowholic.com
Note: See TracChangeset
for help on using the changeset viewer.