Ticket #1516: 1516.patch
File 1516.patch, 1000 bytes (added by , 9 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
195 195 $query->set( 'wp-parser-source-file', str_replace( array( '.php', '/' ), array( '-php', '_' ), $query->query['wp-parser-source-file'] ) ); 196 196 } 197 197 198 // If user has '()' at end of a search string, assume they want a specific function/method.199 198 if ( $query->is_search() ) { 199 200 // Order searches by title first. 201 $query->set( 'orderby', '' ); 202 $query->set( 'search_orderby_title', 1); 203 204 // If user has '()' at end of a search string, assume they want a specific function/method. 200 205 $s = htmlentities( $query->get( 's' ) ); 201 206 if ( '()' === substr( $s, -2 ) ) { 202 207 // Enable exact search