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/forums.php

    r5951 r6033  
    9797     */
    9898    private function bail() {
    99         if ( ! isset( get_current_screen()->post_type ) || ( $this->post_type != get_current_screen()->post_type ) ) {
     99        if ( $this->post_type != get_current_screen()->post_type ) {
    100100            return true;
    101101        }
Note: See TracChangeset for help on using the changeset viewer.