WordPress.org

Make WordPress Core

Ticket #26869: load-back-compat.diff

File load-back-compat.diff, 629 bytes (added by DrewAPicture, 3 years ago)

Clarify comment for back-compat load-* hooks.

  • src/wp-admin/admin.php

     
    313313         * @since 2.1.0 
    314314         */ 
    315315        do_action( 'load-' . $pagenow ); 
    316         // Backwards compatibility with old load-page-new.php, load-page.php, 
    317         // and load-categories.php actions. 
     316 
     317        /* 
     318         * The following hooks are fired to ensure backward compatibility. 
     319         * In all other cases, 'load-' . $pagenow should be used instead. 
     320         */ 
    318321        if ( $typenow == 'page' ) { 
    319322                if ( $pagenow == 'post-new.php' ) 
    320323                        do_action( 'load-page-new.php' );