WordPress.org

Ready to get started?Download WordPress

Forums

Enabling Post Revision causes Diff.php error output. (1 post)

  1. stuartshields
    Member
    Posted 1 year ago #

    Hi all,

    This could be a case of me using an old tag or something to do with my server.

    However, I've enabled Post revision using the following code:
    define('WP_POST_REVISIONS', true );

    When I go into the history of the Post (or Page), I get the following errors:

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff.php on line 380

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff.php on line 402

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff.php on line 424

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff.php on line 446

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff/Renderer.php on line 101

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff/Renderer.php on line 121

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff/Engine/native.php on line 107

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff/Engine/native.php on line 122

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff/Engine/native.php on line 124

    Deprecated: Assigning the return value of new by reference is deprecated in /wp-includes/Text/Diff/Engine/native.php on line 126

    I've read somewhere that putting this into the code will remove the server from reporting these errors:
    error_reporting(E_ALL & ~E_DEPRECATED);

    However I just want to make sure that is correct, also Post revision appears to work even with the above error output.

Topic Closed

This topic has been closed to new replies.

About this Topic