Ticket #3759: query.php.diff

File query.php.diff, 447 bytes (added by priv, 2 years ago)

trim before test empty of the search string

  • wp-includes/query.php

    old new  
    747747                } 
    748748 
    749749                // If a search pattern is specified, load the posts that match 
     750                $q['s'] = trim($q['s']); 
    750751                if (!empty($q['s'])) { 
    751752                        // added slashes screw with quote grouping when done early, so done later 
    752753                        $q['s'] = stripslashes($q['s']);