Bug: Added undesired script to requests

Forums SNAP – WordPress Plugin Forums Bug: Added undesired script to requests

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24244
    Miguel
    Participant

      Hi there, I use xmlrpc and json-api to manage my wordpress sites and with the last update of your plugin is adding a undesired piece of html code to every request I do to xmlrpc o json-api in my blog.
      This is the code added:
      [code]
      <script type=”text/javascript” > jQuery(document).ready(function($) { jQuery.get(‘https://example.org/wp-cron.php?doing_wp_cron=0&#8217;); }); </script>
      [/code]
      Can you solve this bug in a next update?

      #489444
      Adam
      Participant

        This bug is still present (SNAP version: 3.4.31) – I encountered it using the ‘WP REST API’ plugin (version: 1.2.5) – where requests such as:

        https://www.domain.com/wp-json/posts?filter[posts_per_page]=10&type[]=post

        Return an invalid JSON result due to having the above mentioned wp-cron.php javascript appended to the end.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.