diff --git wp-includes/media.php wp-includes/media.php
index f063e8e..b6a4eb9 100644
|
|
function add_image_size( $name, $width = 0, $height = 0, $crop = false ) { |
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
| 194 | * Removed a new image size |
| 195 | * |
| 196 | * @since 3.9.0 |
| 197 | * |
| 198 | * @param string $name The image size name. |
| 199 | * @return bool false on failure, true on success. |
| 200 | */ |
| 201 | function remove_image_size( $name ) { |
| 202 | global $_wp_additional_image_sizes; |
| 203 | |
| 204 | if( isset( $_wp_additional_image_sizes[$name] ) ) { |
| 205 | unset( $_wp_additional_image_sizes[$name] ); |
| 206 | return true; |
| 207 | } |
| 208 | |
| 209 | return false; |
| 210 | } |
| 211 | |
| 212 | /** |
194 | 213 | * Registers an image size for the post thumbnail |
195 | 214 | * |
196 | 215 | * @since 2.9.0 |