Home Forums WordPress Plugins Hide My WP one instance of _wpnonce will not remove from source

This topic is: not resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6196
    pokernutwins
    Post count: 85

    Hi, I have made everything on my website hidden with this plugin apart from one instance of _wpnonce that I just cannot get rid of, even when the removal checkbox is ticked in hmwp, the plugin that is using this string and is causing it to be visible at the bottom of my html is called Crafty Social Shares plugin from wordpress repository, this is the only share plugin that I can get to play nice with my setup so need to keep it installed, can you please check this plugin, the _wpnonce string in the html seems to be related to crafty social share plugin calling the ajax.php for use of the share count being shown, I can however replace this string or change the url using the replace tools but this then breaks the ajax and stops the share count from loading.

    • This topic was modified 9 years, 5 months ago by pokernutwins.
    • This topic was modified 9 years, 5 months ago by pokernutwins.
    #6204
    Suman M.
    Post count: 12480

    Hi, “_wpnonce” is being used internally by the plugin in file class-SH-Crafty-Social-Buttons-Plugin.php in line number 257 (within function get_share_count)
    $nonce = isset($_GET[‘_wpnonce’]) ? $_GET[‘_wpnonce’] : ”;

    If you add replacement in HMWP like below:
    _wpnonce ==> myid

    then in the plugin code above, you’ll need to replace
    $nonce = isset($_GET[‘_wpnonce’]) ? $_GET[‘_wpnonce’] : ”;
    with
    $nonce = isset($_GET[‘myid’]) ? $_GET[‘myid’] : ”;

    #6225
    pokernutwins
    Post count: 85

    Hi Suman ty for the response it worked a treat 🙂

    Any ideas how i can change the div classes for this plugin too?

    #6230
    Suman M.
    Post count: 12480

    Do you mean to change class name “myclass” as in <div class=”myclass”> ?
    If so, we recommend you not to change such css class names and script variables as this might break the site’s styling.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.