Removed wp_get_attachment_image_url() function from functions
This commit is contained in:
parent
1abac97f93
commit
06dc6aefb9
|
@ -174,18 +174,4 @@ function barebones_tiny_mce_before_init( $settings )
|
||||||
}
|
}
|
||||||
|
|
||||||
add_filter( 'tiny_mce_before_init', 'barebones_tiny_mce_before_init' );
|
add_filter( 'tiny_mce_before_init', 'barebones_tiny_mce_before_init' );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get image URL for whatever size.
|
|
||||||
*/
|
|
||||||
|
|
||||||
function wp_get_attachment_image_url( $id, $size = 'full', $attrs = [] )
|
|
||||||
{
|
|
||||||
$image = wp_get_attachment_image_src( $id, $size, $attrs );
|
|
||||||
|
|
||||||
return $image[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue