Make WordPress Core


Ignore:
Timestamp:
10/22/2013 05:21:32 PM (13 years ago)
Author:
nacin
Message:

Spell out duplicate hook locations.

props DrewAPicture.
fixes #25658.

File:
1 edited

Legend:

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

    r25821 r25868  
    713713                wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
    714714
    715             //duplicate_hook
     715            /** This filter is documented in wp-admin/custom-header.php */
    716716            $image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication
    717717
     
    855855            wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
    856856
    857         //duplicate_hook
     857        /** This filter is documented in wp-admin/custom-header.php */
    858858        $cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication
    859859
     
    888888        $medium = str_replace( basename( $original ), 'midsize-' . basename( $original ), $original );
    889889        if ( file_exists( $medium ) ) {
    890             //duplicate_hook
     890            /**
     891             * Filter the path of the file to delete.
     892             *
     893             * @since 2.1.0
     894             *
     895             * @param string $medium Path to the file to delete.
     896             */
    891897            @unlink( apply_filters( 'wp_delete_file', $medium ) );
    892898        }
    893899
    894900        if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) {
    895             //duplicate_hook
     901            /** This filter is documented in wp-admin/custom-header.php */
    896902            @unlink( apply_filters( 'wp_delete_file', $original ) );
    897903        }
Note: See TracChangeset for help on using the changeset viewer.