• Resolved bollim

    (@bollim)


    After pasting the links, a blank pop-up for pasting them reappears again. When I click Cancel, nothing is added to the library.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author notetoservices

    (@notetoservices)

    Are they regular links to jpg or png? Nothing special? The plugin does use a native WordPress function.

    Thread Starter bollim

    (@bollim)

    These are links to another wordpress. The other files add correctly, so the problem only occurs when I add images from this particular site (it’s my old site). I’ve gone around the problem and solved it, but I’d love to know why this is the case. Do you have idea mayby?

    Plugin Author notetoservices

    (@notetoservices)

    It is something I had tried to work around @bollim . WordPress does not like when plugins have a security bypass on their functions. This is what the results say:

    • The URL might be blocked by the WordPress security settings. WordPress has a number of security features that can block certain types of requests, including requests to known malicious websites.
    • The URL might be invalid. If the URL is not formatted correctly, wp_safe_remote_get or wp_safe_remote_post will not be able to download it.
    • The website might be down. If the website that the URL points to is down, wp_safe_remote_get or wp_safe_remote_post will not be able to download it.
    • The website might be using a firewall that blocks WordPress requests. Some websites use firewalls to block requests from bots and other automated scripts. If wp_safe_remote_get or wp_safe_remote_post is being used by a bot, it might be blocked by the firewall.

    There may be a way around it, but I probably can’t get it approved in the plugin library itself, because it requires changing the arguments to allow unsafe urls. I will review the rules of plugins and see if I can work it in for a future release.

    But there is an argument for reject_unsafe_urls

    In the plugin itself, or preferrably a custom functions.php file, you can try adding this.

    function turn_off_reject_unsafe_urls($args) {

    $args[‘reject_unsafe_urls’] = false;

    return $args;

    }

    add_filter(‘http_request_args’, ‘turn_off_reject_unsafe_urls’);

    Plugin Author notetoservices

    (@notetoservices)

    This is a planned feature to be added. Marking this as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No efects’ is closed to new replies.