WordPress.org

Make WordPress Core

Changeset 15388


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/admin.php

    r15347 r15388  
    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.