Make WordPress Core

Changeset 26400


Ignore:
Timestamp:
11/26/2013 07:51:49 AM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-includes/media-template.php.

Props odysseygate for the initial patch. Props kpdesign.
Fixes #25847.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r25868 r26400  
    5252        <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
    5353            <h3 class="upload-instructions"><?php _e( 'Upload Limit Exceeded' ); ?></h3>
    54             <?php do_action( 'upload_ui_over_quota' ); ?>
     54            <?php
     55            /** This action is documented in wp-admin/includes/media.php */
     56            do_action( 'upload_ui_over_quota' ); ?>
    5557
    5658        <?php else : ?>
     
    6466            <div class="post-upload-ui">
    6567                <?php
     68                /** This action is documented in wp-admin/includes/media.php */
    6669                do_action( 'pre-upload-ui' );
     70                /** This action is documented in wp-admin/includes/media.php */
    6771                do_action( 'pre-plupload-upload-ui' );
    6872
    6973                if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) {
     74                    /** This action is documented in wp-admin/includes/media.php */
    7075                    do_action( 'post-plupload-upload-ui' );
    7176                    add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );
    7277                } else {
     78                    /** This action is documented in wp-admin/includes/media.php */
    7379                    do_action( 'post-plupload-upload-ui' );
    7480                }
     
    101107                <?php endif; ?>
    102108
    103                 <?php do_action( 'post-upload-ui' ); ?>
     109                <?php
     110                /** This action is documented in wp-admin/includes/media.php */
     111                do_action( 'post-upload-ui' ); ?>
    104112            </div>
    105113        <?php endif; ?>
     
    341349                    <# } #>>
    342350                    <?php
    343 
    344351                    /** This filter is documented in wp-admin/includes/media.php */
    345352                    $sizes = apply_filters( 'image_size_names_choose', array(
     
    417424        </div>
    418425
    419         <?php if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
     426        <?php
     427        /** This filter is documented in wp-admin/includes/media.php */
     428        if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
    420429            <label class="setting caption">
    421430                <span><?php _e('Caption'); ?></span>
     
    494503    <?php
    495504
     505    /**
     506     * Prints the media manager custom media templates.
     507     *
     508     * @since 3.5.0
     509     */
    496510    do_action( 'print_media_templates' );
    497511}
Note: See TracChangeset for help on using the changeset viewer.