• What’s wrong with the NEW wp-includes/functions.php on line 2365?

    The old one works but has the vulnerability. The new one does not work on my site. This fatal error is called when I go to edit a theme:

    Fatal error: Call to undefined function: attribute_escape()

    IN THIS CODE:
    function wp_referer_field() {
    $ref = attribute_escape(stripslashes($_SERVER[‘REQUEST_URI’]));
    echo ‘<input type=”hidden” name=”_wp_http_referer” value=”‘. $ref . ‘” />’;
    if ( wp_get_original_referer() ) {
    $original_ref = attribute_escape(stripslashes(wp_get_original_referer()));
    echo ‘<input type=”hidden” name=”_wp_original_http_referer” value=”‘. $original_ref . ‘” />’;
    }
    }

Viewing 7 replies - 16 through 22 (of 22 total)
  • If you only overwrite changed files, you need to run upgrade.php – actually you should in any case.
    I have installed 2.07 on 18 different servers now – some of them mine – and have not had a problem.

    Thanks, samboll. I didn’t know whether upgrade.php had to be run, and didn’t want to wait, so I ran it anyway. No harm, no foul, job done.

    Worked for me fine. I just upgraded to 2.0.7 from 2.0.6.
    I just deleted following files and uploaded the new ones. Then ran upgrade.php. All went fine without any problems.

    • wp-admin/inline-uploading.php
    • wp-admin/post.php
    • wp-includes/classes.php
    • wp-includes/functions.php
    • wp-settings.php
    • wp-includes/version.php

    This is the first time I’ve had to upgrade WP, and I’m a bit twitchy.

    I’ve found Mark Asquith’s blog as well – will this quick method work for going from 2.0.5 to 2.0.6 as well? ie just uploading the required files & running upgrade.php?

    I have never run a ‘diff’ patch in my life, and now is not a good time to start. The full upgrade instructions sound a bit like an invitation to disaster for me, so I like the sound of the route. Thanks.

    No… only from 2.0.6… if going from 2.0.5 you need to do a full install…. it’s not that hard, just follow the instructions, and upload all the files to your server then run the upgrade.php file.

    Simply upload the new (2.0.7) wp-includes/functions-formatting.php and wp-includes/comment-functions.php files along with the other recommended files when upgrading. All will be well.

    Mark Jaquith was pretty clear on the issue: IF you’re upgrading from 2.0.6, you can do the minimal file upgrade thing (I’d also run upgrade.php).

    If it’s an earlier version of WordPress, then you need to do the full file replacement and run upgrade.php.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘fatal error re 2.07 wp-includes/functions.php on line 2365’ is closed to new replies.