Make WordPress Core

Changeset 27695


Ignore:
Timestamp:
03/25/2014 08:04:44 AM (10 years ago)
Author:
DrewAPicture
Message:

Correct misleading verbiage in 'print' hook docs.

Standardizes 'print' hook docs on the concept that hooks are fired when scripts and styles are printed.

Props ericlewis for the initial patch.
Fixes #26924.

Location:
trunk/src
Files:
6 edited

Legend:

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

    r26235 r27695  
    8181
    8282/**
    83  * Print styles for a specific admin page based on $hook_suffix.
     83 * Fires when styles are printed for a specific admin page based on $hook_suffix.
    8484 *
    8585 * @since 2.6.0
     
    8888
    8989/**
    90  * Print styles for all admin pages.
     90 * Fires when styles are printed for all admin pages.
    9191 *
    9292 * @since 2.6.0
     
    9595
    9696/**
    97  * Print scripts for a specific admin page based on $hook_suffix.
     97 * Fires when scripts are printed for a specific admin page based on $hook_suffix.
    9898 *
    9999 * @since 2.1.0
     
    102102
    103103/**
    104  * Print scripts for all admin pages.
     104 * Fires when scripts are printed for all admin pages.
    105105 *
    106106 * @since 2.1.0
  • trunk/src/wp-admin/customize.php

    r27574 r27695  
    8585<?php
    8686/**
    87  * Print Customizer control styles.
     87 * Fires when Customizer control styles are printed.
    8888 *
    8989 * @since 3.4.0
     
    9292
    9393/**
    94  * Print Customizer control scripts.
     94 * Fires when Customizer control scripts are printed.
    9595 *
    9696 * @since 3.4.0
  • trunk/src/wp-admin/includes/media.php

    r27675 r27695  
    443443
    444444    /**
    445      * Print admin styles enqueued for the legacy (pre-3.5.0) media upload popup.
     445     * Fires when admin styles enqueued for the legacy (pre-3.5.0) media upload popup are printed.
    446446     *
    447447     * @since 2.9.0
     
    453453
    454454    /**
    455      * Print admin scripts enqueued for the legacy (pre-3.5.0) media upload popup.
     455     * Fires when admin scripts enqueued for the legacy (pre-3.5.0) media upload popup are printed.
    456456     *
    457457     * @since 2.9.0
     
    463463
    464464    /**
    465      * Print scripts enqueued for the admin header for the legacy (pre-3.5.0)
    466      * media upload popup.
     465     * Fires when scripts enqueued for the admin header for the legacy (pre-3.5.0)
     466     * media upload popup are printed.
    467467     *
    468468     * @since 2.9.0
  • trunk/src/wp-admin/includes/template.php

    r27470 r27695  
    15151515?>
    15161516</head>
    1517 <?php
    1518 /** This filter is documented in wp-admin/admin-header.php */
    1519 ?>
     1517<?php /** This filter is documented in wp-admin/admin-header.php */ ?>
    15201518<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>">
    15211519<script type="text/javascript">
  • trunk/src/wp-admin/press-this.php

    r27262 r27695  
    309309    /** This action is documented in wp-admin/admin-header.php */
    310310    do_action( 'admin_enqueue_scripts', 'press-this.php' );
     311
    311312    /**
    312      * Print styles for the Press This admin page.
     313     * Firest when styles are printed for the Press This admin page.
    313314     *
    314315     * @since 3.7.0
    315316     */
    316317    do_action( 'admin_print_styles-press-this.php' );
     318
    317319    /** This action is documented in wp-admin/admin-header.php */
    318320    do_action( 'admin_print_styles' );
     321
    319322    /**
    320      * Print scripts for the Press This admin page.
     323     * Fires when scripts are printed for the Press This admin page.
    321324     *
    322325     * @since 3.7.0
    323326     */
    324327    do_action( 'admin_print_scripts-press-this.php' );
     328
    325329    /** This action is documented in wp-admin/admin-header.php */
    326330    do_action( 'admin_print_scripts' );
     331
    327332    /**
    328333     * Fires in the head tag on the Press This admin page.
     
    331336     */
    332337    do_action( 'admin_head-press-this.php' );
     338
    333339    /** This action is documented in wp-admin/admin-header.php */
    334340    do_action( 'admin_head' );
  • trunk/src/wp-includes/media-template.php

    r27658 r27695  
    10301030
    10311031    /**
    1032      * Prints the media manager custom media templates.
     1032     * Fires when the custom Backbone media templates are printed.
    10331033     *
    10341034     * @since 3.5.0
Note: See TracChangeset for help on using the changeset viewer.