Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/08/2012 02:56:08 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Admin:

  • Additional sanity checks on bail() methods, if get_current_screen() is not set.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-replies.php

    r4070 r4077  
    9999         */
    100100        private function bail() {
    101                 if ( $this->post_type != get_current_screen()->post_type )
     101                if ( !isset( get_current_screen()->post_type ) || ( $this->post_type != get_current_screen()->post_type ) )
    102102                        return true;
    103103
Note: See TracChangeset for help on using the changeset viewer.