Ticket #14083: backwards compat.diff
File backwards compat.diff, 837 bytes (added by , 14 years ago) |
---|
-
Users/simon/Projects/WordPress-Bleeding/site/wp-admin/admin.php
200 200 exit(); 201 201 } else { 202 202 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 } 203 213 } 204 214 205 215 if ( !empty($_REQUEST['action']) )