Skip to:
Content

bbPress.org

Changeset 4079


Ignore:
Timestamp:
07/08/2012 03:00:38 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Admin:

  • Additional sanity checks on bail() methods, if get_current_screen() is not set. (2.1 branch)
Location:
branches/2.1/bbp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/bbp-admin/bbp-forums.php

    r4070 r4079  
    8787     */
    8888    private function bail() {
    89         if ( $this->post_type != get_current_screen()->post_type )
     89        if ( !isset( get_current_screen()->post_type ) || ( $this->post_type != get_current_screen()->post_type ) )
    9090            return true;
    9191
  • branches/2.1/bbp-admin/bbp-replies.php

    r4070 r4079  
    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
  • branches/2.1/bbp-admin/bbp-topics.php

    r4070 r4079  
    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.