Make WordPress Core

Ticket #14083: backwards compat.diff

File backwards compat.diff, 837 bytes (added by simonwheatley, 14 years ago)

Patch which only covers the backwards compatability (no alteration of existing hooks, no new hooks) against the current trunk, now with added speling, corrected code comment and elseif for (very) slight performance increase

  • Users/simon/Projects/WordPress-Bleeding/site/wp-admin/admin.php

     
    200200        exit();
    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
    205215if ( !empty($_REQUEST['action']) )