WordPress.org

Ready to get started?Download WordPress

Forums

Find replace
Replace string changed randomly (2 posts)

  1. juliedc
    Member
    Posted 2 years ago #

    I entered: <div id="testimonials"> but the string was changed and all replacements were made as <div id=\"testimonials\">. Will go find a different plugin to fix this.

    http://wordpress.org/extend/plugins/find-replace/

  2. ramon fincken
    Member
    Plugin Author

    Posted 1 year ago #

    This is not random, but a built in security.

    WP has a function to prevent all this and it is called before replacement:

    //Is magic quotes on?
    		// http://codex.wordpress.org/Function_Reference/stripslashes_deep
    		if ( get_magic_quotes_gpc() ) {
    			$_POST = array_map( 'stripslashes_deep', $_POST );
    		}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic