Changeset 5461
- Timestamp:
- 05/02/2017 04:37:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r5457 r5461 1017 1017 1018 1018 if ( 'tags' === $path[2] ) { 1019 if ( isset( $path[3] ) ) {1019 if ( isset( $path[3] ) && !empty( $path[3] ) ) { 1020 1020 wp_safe_redirect( home_url( '/search/' . urlencode( $path[3] ) . '/' ) ); 1021 1021 die(); … … 1044 1044 } 1045 1045 1046 // Otherwise, handle a plugin redirect.1046 // Handle any plugin redirects. 1047 1047 if ( $path[2] && ( $plugin = self::get_plugin_post( $path[2] ) ) ) { 1048 1048 $permalink = get_permalink( $plugin->ID ); … … 1051 1051 die(); 1052 1052 } 1053 } 1054 1055 //Otherwise, let's redirect to the search page 1056 if ( isset( $path[2] ) && !empty( $path[2] ) ) { 1057 wp_safe_redirect( home_url( '/search/' . urlencode( $path[2] ) . '/' ) ); 1058 die(); 1053 1059 } 1054 1060 }
Note: See TracChangeset
for help on using the changeset viewer.