mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 14:33:32 +09:00
Deprecate function to convert image URL to ID
We've been storing images by ID since 2.2.0 so I'd like to get rid of this.
This commit is contained in:
@@ -267,6 +267,8 @@ class Display_Featured_Image_Genesis_Common {
|
||||
*/
|
||||
public static function get_image_id( $attachment_url = '' ) {
|
||||
|
||||
_deprecated_function( __FUNCTION__, '2.7.0' );
|
||||
|
||||
$attachment_id = false;
|
||||
|
||||
// as of 2.2.0, if a (new) image id is passed to the function, or if it's empty, return it as is.
|
||||
|
||||
Reference in New Issue
Block a user