Make WordPress Core

Changeset 25283


Ignore:
Timestamp:
09/06/2013 05:04:36 PM (11 years ago)
Author:
nacin
Message:

Mark the hooks in custom-background.php as duplicates.

  • image_size_names_choose should be documented in wp-includes/media.php
  • wp_create_file_in_uploads should be documented in custom-header.php

see #25229.

File:
1 edited

Legend:

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

    r25254 r25283  
    387387        set_theme_mod('background_image_thumb', esc_url_raw( $thumbnail[0] ) );
    388388
    389         do_action('wp_create_file_in_uploads', $file, $id); // For replication
     389        //duplicate_hook
     390        do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication
    390391        $this->updated = true;
    391392    }
     
    412413        if ( ! current_user_can('edit_theme_options') || ! isset( $_POST['attachment_id'] ) ) exit;
    413414        $attachment_id = absint($_POST['attachment_id']);
     415        //duplicate_hook
    414416        $sizes = array_keys(apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) ));
    415417        $size = 'thumbnail';
Note: See TracChangeset for help on using the changeset viewer.