mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 21:30:26 +00:00
Docs: Put "it's" in its place (again).
Props kitchin. Fixes #33894. git-svn-id: https://develop.svn.wordpress.org/trunk@34234 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -614,7 +614,7 @@ function wp_restore_image($post_id) {
|
||||
if ( $parts['basename'] != $data['file'] ) {
|
||||
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
|
||||
|
||||
// Delete only if it's edited image.
|
||||
// Delete only if it's an edited image.
|
||||
if ( preg_match('/-e[0-9]{13}\./', $parts['basename']) ) {
|
||||
wp_delete_file( $file );
|
||||
}
|
||||
@@ -637,7 +637,7 @@ function wp_restore_image($post_id) {
|
||||
if ( isset($meta['sizes'][$default_size]) && $meta['sizes'][$default_size]['file'] != $data['file'] ) {
|
||||
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
|
||||
|
||||
// Delete only if it's edited image
|
||||
// Delete only if it's an edited image.
|
||||
if ( preg_match('/-e[0-9]{13}-/', $meta['sizes'][$default_size]['file']) ) {
|
||||
$delete_file = path_join( $parts['dirname'], $meta['sizes'][$default_size]['file'] );
|
||||
wp_delete_file( $delete_file );
|
||||
|
||||
Reference in New Issue
Block a user