• Resolved Fibro Jedi

    (@fibrojedi)


    Hi there,

    Hope you can help. It appears that some Search in Place code is outputting the admin URL (which is not /wp-admin) into the script code on my site. It’s a line that begins

    var codepeople_search_in_place =

    Are you aware this is an issue, or could this be a different plugin? The code around it – FYI – is Wordfence and Hummingbird, but I highly doubt they are the ones defining the codepeople_search_in_place variable.

    I have, however, contacted Hummingbird about this too.

    What can I do to investigate this further please?
    Thanks,

    FJ

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @fibrojedi

    I’m sorry, I don’t understand the issue description. Our plugin generates the codepeople_search_in_place variable, but only on the public website. This variable contains the search in place settings, like the number of characters, colors, summary length, etc.

    However, if you’ve installed an optimizer plugin configured to generate a unique script file with all the website’s scripts, the file could contain this variable too.

    Best regards.

    Thread Starter Fibro Jedi

    (@fibrojedi)

    Hey again,

    I had to keep the code to a minimum above as I had a ticket temporarily marked as spam before. The snippet goes on like this:

    var codepeople_search_in_place={"own_only":"1","result_number":"5","more":"More Results","empty":"0 results","char_number":"10","root":"\/\/site.me.uk\/ADMINURL\/","home"

    And it reveals the admin URL. That’s what I’m trying to get to. If CiP isn’t doing this, then I know to look elsewhere but those variables look to be CiP’s settings. (I have a minimum 10 characters set (hence "char_number":"10").

    Is that a bit clearer?
    Thanks!

    Plugin Author codepeople

    (@codepeople)

    Hello @fibrojedi

    Thank you very much for the clarification. I understand now what do you mean with the adminurl. The plugin loads the popup results with Ajax, and WordPress handles the Ajax calls with the “admin-ajax.php” script in the admin URL. On your website, the “admin-ajax.php” file is located in:

    //site.me.uk/ADMINURL/admin-ajax.php

    Best regards.

    Thread Starter Fibro Jedi

    (@fibrojedi)

    Okay, now you know what I mean, how do I stop the admin URL being outputted in the source code?

    (I’ve re-marked as unresolved, because it is. But I think with your help we can figure it out. Thanks).

    • This reply was modified 2 years, 8 months ago by Fibro Jedi. Reason: Marking as not resolved, because it's not yet sorted. Thanks
    Plugin Author codepeople

    (@codepeople)

    Hello @fibrojedi

    The root is a required attribute. However, it can be obfuscated.

    Please, install the latest plugin update, and purge your website and browser caches.

    Best regards.

    Thread Starter Fibro Jedi

    (@fibrojedi)

    Thank you, that seems to have done the trick. I really appreciate that ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SiP Code Outputting Admin URL?’ is closed to new replies.