WordPress.org

Ready to get started?Download WordPress

Forums

Upgrade - functions.php Error on line 500 sql_esc (2 posts)

  1. bfulbright
    Member
    Posted 4 years ago #

    I upgraded one of my wordpress sites to 2.9.2 with no issues,

    I uploaded another one with the same process, but received the following errors:

    I am not sure where the break is, and just need a pointer. wp-config.php was properly set.... thanks in advance!

    1.) Fatal error: Call to undefined function esc_sql() in /home/content/b/f/u/bfulbright/html/infantjesuswp/wp-includes/functions.php on line 500

    function update_option( $option_name, $newvalue ) {
    	global $wpdb;
    
    	wp_protect_special_option( $option_name );
    
    line 500$safe_option_name = esc_sql( $option_name );
    	$newvalue = sanitize_option( $option_name, $newvalue );
    
    	$oldvalue = get_option( $safe_option_name );
    
    	$newvalue = apply_filters( 'pre_update_option_' . $option_name, $newvalue, $oldvalue );
    
    	// If the new and old values are the same, no need to update.
    	if ( $newvalue === $oldvalue )
    		return false;
    
    	if ( false === $oldvalue ) {
    		add_option( $option_name, $newvalue );
    		return true;
    	}
  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic