Make WordPress Core

Changeset 15387


Ignore:
Timestamp:
07/12/2010 03:09:32 PM (14 years ago)
Author:
ryan
Message:

Back compat load actions. Props simonwheatley. fixes #14083 for 3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r15346 r15387  
    201201} else {
    202202    do_action("load-$pagenow");
     203    // Backwards compatibility with old load-page-new.php, load-page.php,   
     204    // and load-categories.php actions. 
     205    if ( $typenow == 'page' ) { 
     206        if ( $pagenow == 'post-new.php' ) 
     207            do_action( 'load-page-new.php' ); 
     208        elseif ( $pagenow == 'post.php' ) 
     209            do_action( 'load-page.php' ); 
     210    }  elseif ( $taxnow == 'category' && $pagenow == 'edit-tags.php' ) {
     211        do_action( 'load-categories.php' );
     212    }
    203213}
    204214
Note: See TracChangeset for help on using the changeset viewer.