WordPress.org

Make WordPress Core

Changeset 31571


Ignore:
Timestamp:
02/27/2015 11:14:34 AM (5 years ago)
Author:
ocean90
Message:

Press This: Use boolean value instead of return_true(). Add missing hook docs.

see #31373.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r31566 r31571  
    466466         * @param bool $enable Whether to enable media discovery.
    467467         */
    468         if ( apply_filters( 'enable_press_this_media_discovery', __return_true() ) ) {
     468        if ( apply_filters( 'enable_press_this_media_discovery', true ) ) {
    469469            /*
    470470             * If no _meta (a new thing) was passed via $_POST, fetch data from source as fallback,
     
    887887
    888888    <?php
    889 
    890         do_action( 'admin_footer', '' );
    891         do_action( 'admin_print_footer_scripts' );
    892 
     889    /** This action is documented in wp-admin/admin-footer.php */
     890    do_action( 'admin_footer' );
     891    /** This action is documented in wp-admin/admin-footer.php */
     892    do_action( 'admin_print_footer_scripts' );
    893893    ?>
    894894</body>
Note: See TracChangeset for help on using the changeset viewer.