• Just caught a small bug related to images in content detection.

    My websites default URL is not secure, so most images inserted into the content will be “http://” but I do have some pages that are set to secure so when images are inserted into the content on those pages they have “https://”.

    I edited this bit of code to remove the http:// or https:// of the URL before it searches the content.

    if ( $intermediate ) {
    	$cleanurl = preg_replace("(https?://)", "", $intermediate['url'] );
    	$attachment_urls[] = $cleanurl;
    }

    Cheers!

    https://wordpress.org/plugins/find-posts-using-attachment/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘https bug, if Site Address (URL) is entered as not secure’ is closed to new replies.