public/wordpress/wp-content/plugins/backupbuddy/classes/_rollback_undo.php
/**
	 * Generates and returns a placeholder escape string for use in queries returned by ::prepare().
	 *
	 * @since 4.8.3
	 *
	 * @return string String to escape placeholders.
	 */
Generates and returns a placeholder escape string for use in queries returned by ::prepare().

@return string String to escape placeholders.
Generates and returns a placeholder escape string for use in queries returned by :: prepare () . @return string String to escape placeholders .
public function placeholder_escape() {
		static $placeholder;
		if ( ! $placeholder ) {
			$algo = function_exists( 'hash' ) ? 'sha256' : 'sha1';
			$salt = defined( 'AUTH_SALT' ) ? AUTH_SALT : rand();
			$placeholder = '{' . hash_hmac( $algo, uniqid( $salt, true ), $salt ) . '}';
		}
		if ( ! has_filter( 'query', array( $this, 'remove_placeholder_escape' ) ) ) {
			add_filter( 'query', array( $this, 'remove_placeholder_escape' ), 0 );
		}
		return $placeholder;
	}
public function placeholder_escape ( ) { static $ placeholder ; if ( ! $ placeholder ) { $ algo = function_exists ( 'hash' ) ? 'sha256' : 'sha1' ; $ salt = defined ( 'AUTH_SALT' ) ? AUTH_SALT : rand ( ) ; $ placeholder = '{' . hash_hmac ( $ algo , uniqid ( $ salt , true ) , $ salt ) . '}' ; } if ( ! has_filter ( 'query' , array ( $ this , 'remove_placeholder_escape' ) ) ) { add_filter ( 'query' , array ( $ this , 'remove_placeholder_escape' ) , 0 ) ; } return $ placeholder ; }
Generates and returns a placeholder escape string for use in queries returned by ::prepare().
Generates and returns a placeholder escape string for use in queries returned by :: prepare () .
// If ext/hash is not present, compat.php's hash_hmac() does not support sha256. // Old WP installs may not have AUTH_SALT defined. /*
		 * Add the filter to remove the placeholder escaper. Uses priority 0, so that anything
		 * else attached to this filter will recieve the query with the placeholder string removed.
		 */