Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Update to 4.9 ~ Fatal error: Cannot redeclare get_shortcut_link()

Discussion in 'Misc WordPress Requests' started by PressGang, Nov 17, 2017.

  1. PressGang

    Guest

    Update to 4.9 ~ Fatal error: Cannot redeclare get_shortcut_link(), by PressGang

    I am getting the same error when I try to update two very different 4.8.3 sites to 4.9 …

    ‘Fatal error: Cannot redeclare get_shortcut_link() (previously declared in /home/mysite/XXXXXXX/htdocs/wp-includes/link-template.php:2906) in /home/mysite/XXXXXXX/htdocs/wp-includes/deprecated.php on line 3912’

    The update appears to be going well until about 30 seconds after the message ‘Copying the required files…’ appears, then it just freezes.

    As I understand it that error relates to the WP tool ‘Press This’. This is the code preceding line 3912…

    function get_shortcut_link() {
    _deprecated_function( __FUNCTION__, '4.9.0' );
    $link = '';
    /**
    * Filters the Press This bookmarklet link.
    *
    * @since 2.6.0
    * @deprecated 4.9.0
    *
    * @param string $link The Press This bookmarklet link.
    */
    return apply_filters( 'shortcut_link', $link );
    }

    I have never installed a plugin called ‘Press This’, so as this doesn’t appear to be a either a theme or plugin related issue should I assume this is a core problem and therefore refrain from updating tens of other sites?

    Update to 4.9 ~ Fatal error: Cannot redeclare get_shortcut_link()
     
    #1

Share This Page

Web Hosting