Changeset 1651216
- Timestamp:
- 05/04/2017 06:49:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display-all-image-sizes/trunk/display-all-image-sizes.php
r1593526 r1651216 17 17 add_filter( 'attachment_fields_to_edit', 'wpshout_display_all_image_sizes', 10, 2 ); 18 18 function wpshout_display_all_image_sizes( $form_fields, $post ) { 19 $size_names = get_intermediate_image_sizes( $post->ID ); 20 19 $size_names = get_intermediate_image_sizes(); 21 20 22 21 // Returns array of sizes, each containing array of name, link, length, height … … 107 106 function wpshout_custom_sizes( $sizes ) { 108 107 global $post; 109 $size_names = get_intermediate_image_sizes( $post->ID);108 $size_names = get_intermediate_image_sizes(); 110 109 111 110 $size_merge = array();
Note: See TracChangeset
for help on using the changeset viewer.