• 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)
  • Plugin Contributor ianmjones

    (@ianmjones)

    Hmm, unable to reproduce.

    Please check that the upgrade to v2.3.1 worked and you have the expected values in the as3cf_items.path fields.

    If that all looks ok, can you trace through the problem to see where the issue is on your site?

Viewing 1 replies (of 1 total)
  • The topic ‘attachment_url_to_postid and v2.3/2.3.1’ is closed to new replies.