Make WordPress Core

Ticket #17737: 17737.patch

File 17737.patch, 519 bytes (added by xknown, 14 years ago)

urldecode returns a string, move the cast to the right place

  • wp-includes/query.php

     
    22612261                if ( empty($q['author']) || ($q['author'] == '0') ) {
    22622262                        $whichauthor = '';
    22632263                } else {
    2264                         $q['author'] = (string)urldecode($q['author']);
     2264                        $q['author'] = urldecode((string)$q['author']);
    22652265                        $q['author'] = addslashes_gpc($q['author']);
    22662266                        if ( strpos($q['author'], '-') !== false ) {
    22672267                                $eq = '!=';