Viewing 1 replies (of 1 total)
  • Thread Starter Mihai Bocsaru

    (@proitservice)

    The quick fix that I implemented and that you may like to eventually adopt is:

    1) replaced:

    
    $link = esc_url( $photo->link );
    $src = esc_url( $photo->media->m );
    $title = esc_attr( $photo->title );
    

    2) with:

    
    $link = esc_url( $photo->link );
    $httpslink = str_replace("http:","https:",$link);
    $link = $httpslink;
    $src = esc_url( $photo->media->m );
    $httpssrc = str_replace("http:","https:",$src);
    $src = $httpssrc;
    $title = esc_attr( $photo->title );
    

    Another thing that I did for the sake of sticking to HTTPS (not really necessary for my request) was to replace the 2 instances of “http” with “https” on the flickr api URLs from the plugin file.

    Thanks,
    Mihai

Viewing 1 replies (of 1 total)
  • The topic ‘How to get the Flickr photos URLs starting with HTTPS?’ is closed to new replies.