Update WordPress to 5.2
This commit is contained in:
parent
489b5a5914
commit
e00f87f2f5
599 changed files with 119573 additions and 55990 deletions
|
|
@ -33,7 +33,7 @@ function wp_image_editor( $post_id, $msg = false ) {
|
|||
$backup_sizes = get_post_meta( $post_id, '_wp_attachment_backup_sizes', true );
|
||||
$can_restore = false;
|
||||
if ( ! empty( $backup_sizes ) && isset( $backup_sizes['full-orig'], $meta['file'] ) ) {
|
||||
$can_restore = $backup_sizes['full-orig']['file'] != basename( $meta['file'] );
|
||||
$can_restore = $backup_sizes['full-orig']['file'] != wp_basename( $meta['file'] );
|
||||
}
|
||||
|
||||
if ( $msg ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue