Ответы в темах

Просмотр 1 ответа (всего 1)
  • Спасибо! Помогло.
    Остались две ошибки:
    1) Deprecated: Функция block_categories с версии 5.8.0 считается устаревшей! Используйте block_categories_all. in /var/www/site-ru/wp-includes/functions.php on line 5586

    2) Deprecated: Функция contextual_help с версии 3.3.0 считается устаревшей! Используйте get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab(). in /var/www/site-ru/wp-includes/functions.php on line 5586

    Код functions.php:

    if ( WP_DEBUG && apply_filters( 'deprecated_hook_trigger_error', true ) ) {
    		$message = empty( $message ) ? '' : ' ' . $message;
    
    		if ( $replacement ) {
    			trigger_error(
    				sprintf(
    					/* translators: 1: WordPress hook name, 2: Version number, 3: Alternative hook name. */
    					__( '%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.' ),
    					$hook,
    					$version,
    					$replacement
    				) . $message,
    				E_USER_DEPRECATED
    			);
    		} else {
    			trigger_error(
    				sprintf(
    					/* translators: 1: WordPress hook name, 2: Version number. */
    					__( '%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.' ),
    					$hook,
    					$version
    				) . $message,
    				E_USER_DEPRECATED
    			);
    		}
    	}
    }

    Строка 5586 у меня:
    E_USER_DEPRECATED

    С этим можно что-нибудь сделать?

Просмотр 1 ответа (всего 1)