Plugin Updates
This commit is contained in:
@@ -78,12 +78,15 @@ class WP_Site_Icon {
|
||||
* Creates an attachment 'object'.
|
||||
*
|
||||
* @since 4.3.0
|
||||
* @deprecated 6.5.0
|
||||
*
|
||||
* @param string $cropped Cropped image URL.
|
||||
* @param int $parent_attachment_id Attachment ID of parent image.
|
||||
* @return array An array with attachment object data.
|
||||
*/
|
||||
public function create_attachment_object( $cropped, $parent_attachment_id ) {
|
||||
_deprecated_function( __METHOD__, '6.5.0', 'wp_copy_parent_attachment_properties()' );
|
||||
|
||||
$parent = get_post( $parent_attachment_id );
|
||||
$parent_url = wp_get_attachment_url( $parent->ID );
|
||||
$url = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url );
|
||||
|
||||
Reference in New Issue
Block a user