Changeset 44785 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 03/01/2019 08:57:26 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/ajax-actions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r44777 r44785 3652 3652 3653 3653 $parent_url = wp_get_attachment_url( $attachment_id ); 3654 $url = str_replace( basename( $parent_url ),basename( $cropped ), $parent_url );3654 $url = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url ); 3655 3655 3656 3656 $size = @getimagesize( $cropped ); … … 3658 3658 3659 3659 $object = array( 3660 'post_title' => basename( $cropped ),3660 'post_title' => wp_basename( $cropped ), 3661 3661 'post_content' => $url, 3662 3662 'post_mime_type' => $image_type,
Note: See TracChangeset
for help on using the changeset viewer.