WordPress.org

Ready to get started?Download WordPress

Forums

Crayon Syntax Highlighter
[resolved] Change var CrayonSyntaxSettings (5 posts)

  1. UncleCali
    Member
    Posted 1 year ago #

    I noticed when I view the source of my pages the Var CrayonSyntaxSettings is set to

    {"wp_load":"\/home\/accountname\/public_html\/wp-load.php","is_admin":"","crayon_wp":"\/home\/accountname\/public_html\/wp-content\/plugins\/crayon-syntax-highlighter\....

    Anyway to change that? So it doesn't show my account directory name?

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

  2. ShadowHacker
    Member
    Posted 1 year ago #

    I am also getting this. Downgrading to version 1.10 until this is fixed because its very bad having users of your website knowing your directory.

    Can you please fix this ASAP akarmenia! <3 Love your plugin.

  3. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks guys.
    The reason this is sent across from PHP to JS is so that AJAX calls can know with certainty where wp_load.php is. Since its possible to change the installation directory of wordpress, it isn't a simple tasks of saying its in ../../../ from the Crayon plugins directory. But I totally understand your reason for not wanting this sort of thing stored - so I'll find a way around it :)

  4. akarmenia
    Member
    Plugin Author

    Posted 1 year ago #

  5. UncleCali
    Member
    Posted 1 year ago #

    Thank you :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.