Changeset 6411 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 01/22/2018 06:32:54 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
r6407 r6411 1133 1133 } 1134 1134 1135 // Browse 404 's1135 // Browse 404s. 1136 1136 if ( 'browse' === $path[2] ) { 1137 1137 wp_safe_redirect( home_url( '/' ) ); 1138 die(); 1139 } 1140 1141 // The readme.txt page. 1142 if ( 'readme.txt' === $path[2] ) { 1143 header( 'Content-type: text/plain' ); 1144 echo file_get_contents( __DIR__ . '/readme/readme.txt' ); 1138 1145 die(); 1139 1146 } … … 1148 1155 } 1149 1156 1150 // Otherwise, let's redirect to the search page 1157 // Otherwise, let's redirect to the search page. 1151 1158 if ( isset( $path[2] ) && ! empty( $path[2] ) ) { 1152 1159 wp_safe_redirect( home_url( '/search/' . urlencode( $path[2] ) . '/' ) );
Note: See TracChangeset
for help on using the changeset viewer.