attachment_url_to_postid and v2.3/2.3.1
-
Since v2.3 (and v2.3.1) attachment_url_to_postid() returns 0 all the time.
Not an issue anymore after rolling back to 2.2.1.
How to reproduce:
$image_url = 'https://cdn.exemple.com/wp-content/uploads/sites/54/2019/05/catterucia_SPR2019_portrait1_FINAL_2web-1.jpg'; // Replace this with an URL from an actual image on you test env. $attachment_id = attachment_url_to_postid( $image_url ); var_dump($attachment_id); // Will always be 0
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘attachment_url_to_postid and v2.3/2.3.1’ is closed to new replies.