From 435c4e7b837a6c34e014ab7254cbff2dea92b30c Mon Sep 17 00:00:00 2001 From: Brooke Date: Tue, 28 Jul 2020 08:27:01 -0700 Subject: [PATCH] Remove PHPCS Ignore Around $content-width (#1450) The WordPress Coding Standards no longer show an error when the $content-width global is overwritten. This PR removes the comment around that global. See: https://github.com/WordPress/WordPress-Coding-Standards/pull/1773 --- functions.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/functions.php b/functions.php index d083326..591f30f 100644 --- a/functions.php +++ b/functions.php @@ -112,9 +112,6 @@ add_action( 'after_setup_theme', '_s_setup' ); * @global int $content_width */ function _s_content_width() { - // This variable is intended to be overruled from themes. - // Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}. - // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $GLOBALS['content_width'] = apply_filters( '_s_content_width', 640 ); } add_action( 'after_setup_theme', '_s_content_width', 0 );