Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/25/2016 01:25:45 AM (9 years ago)
Author:
johnjamesjacoby
Message:

WP_Screen::post_type is always set since WordPress 3.3.0, so remove superfluous checks in bail() methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/replies.php

    r6032 r6033  
    101101     */
    102102    private function bail() {
    103         if ( ! isset( get_current_screen()->post_type ) || ( $this->post_type !== get_current_screen()->post_type ) ) {
     103        if ( $this->post_type !== get_current_screen()->post_type ) {
    104104            return true;
    105105        }
Note: See TracChangeset for help on using the changeset viewer.