WordPress.org

Make WordPress Core

Ticket #1435: classes.php.diff

File classes.php.diff, 471 bytes (added by markjaquith, 13 years ago)

Allows searches on pages

  • classes.php

     
    501501                        $where .= ' AND (post_status = "static")';
    502502                } elseif ($this->is_single) {
    503503                        $where .= ' AND (post_status != "static")';
     504                } elseif ($this->is_search) {
     505                        $where .= ' AND (post_status = "publish" OR post_status = "static")';
    504506                } else {
    505507                        $where .= ' AND (post_status = "publish"';
    506508