WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/22/2016 04:36:42 AM (4 years ago)
Author:
wonderboymusic
Message:

Media: add a function, wp_get_additional_image_sizes(), that wraps the retrieval of the global $_wp_additional_image_sizes. Removes 6 global imports.

See #37699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image-edit.php

    r38294 r38303  
    701701 * in $_REQUEST['history']
    702702 *
    703  * @global array $_wp_additional_image_sizes
    704  *
    705703 * @param int $post_id
    706704 * @return \stdClass
    707705 */
    708706function wp_save_image( $post_id ) {
    709     global $_wp_additional_image_sizes;
     707    $_wp_additional_image_sizes = wp_get_additional_image_sizes();
    710708
    711709    $return = new stdClass;
Note: See TracChangeset for help on using the changeset viewer.