2016-09-26 wordpressで「0」のような検索キーワードは検索対象にならない | Can't search by 0 in wordpress. wordpress wordpress 4.2.2 では、query.phpに以下のような記述があって、 $q['s'] = 0みたいなケースだと!empty(0)がfalseなのでSQLの生成がスキップされる。 // If a search pattern is specified, load the posts that match. if ( ! empty( $q['s'] ) ) { $search = $this->parse_search( $q ); }