Changeset 44785 for trunk/src/wp-admin/includes/class-wp-site-icon.php
- Timestamp:
- 03/01/2019 08:57:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-icon.php
r42871 r44785 86 86 $parent = get_post( $parent_attachment_id ); 87 87 $parent_url = wp_get_attachment_url( $parent->ID ); 88 $url = str_replace( basename( $parent_url ),basename( $cropped ), $parent_url );88 $url = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url ); 89 89 90 90 $size = @getimagesize( $cropped ); … … 93 93 $object = array( 94 94 'ID' => $parent_attachment_id, 95 'post_title' => basename( $cropped ),95 'post_title' => wp_basename( $cropped ), 96 96 'post_content' => $url, 97 97 'post_mime_type' => $image_type,
Note: See TracChangeset
for help on using the changeset viewer.