Ticket #14083: alternatively - adding context to load-$pagenow hook.diff
File alternatively - adding context to load-$pagenow hook.diff, 859 bytes (added by , 14 years ago) |
---|
-
Users/simon/Projects/WordPress/site/wp-admin/admin.php
199 199 200 200 exit(); 201 201 } else { 202 do_action("load-$pagenow"); 202 do_action("load-$pagenow", $typenow, $taxnow); 203 // Backwards compatability with old load-page-new.php, load-page.php, 204 // and load-edit-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 } 211 if ( $taxnow == 'category' && $pagenow == 'edit-tags.php' ) 212 do_action( 'load-categories.php' ); 203 213 } 204 214 205 215 if ( !empty($_REQUEST['action']) )