WordPress.org

Make WordPress Core

Changeset 28393


Ignore:
Timestamp:
05/13/14 06:27:11 (3 years ago)
Author:
DrewAPicture
Message:

Clarify inline documentation for back-compat load-* action hooks.

See #26869.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin.php

    r28376 r28393  
    289289     * @param bool false Whether to force data to be filtered through kses. Default false. 
    290290     */ 
    291     if ( apply_filters( 'force_filtered_html_on_import', false ) ) 
     291    if ( apply_filters( 'force_filtered_html_on_import', false ) ) { 
    292292        kses_init_filters();  // Always filter imported data with kses on multisite. 
     293    } 
    293294 
    294295    call_user_func($wp_importers[$importer][2]); 
     
    308309     * The dynamic portion of the hook name, $pagenow, is a global variable 
    309310     * referring to the filename of the current page, such as 'admin.php', 
    310      * 'post-new.php' etc. A complete hook for the latter would be 'load-post-new.php'. 
     311     * 'post-new.php' etc. A complete hook for the latter would be 
     312     * 'load-post-new.php'. 
    311313     * 
    312314     * @since 2.1.0 
    313315     */ 
    314316    do_action( 'load-' . $pagenow ); 
    315     // Backwards compatibility with old load-page-new.php, load-page.php, 
    316     // and load-categories.php actions. 
     317 
     318    /* 
     319     * The following hooks are fired to ensure backward compatibility. 
     320     * In all other cases, 'load-' . $pagenow should be used instead. 
     321     */ 
    317322    if ( $typenow == 'page' ) { 
    318323        if ( $pagenow == 'post-new.php' ) 
Note: See TracChangeset for help on using the changeset viewer.