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
This commit is contained in:
Brooke 2020-07-28 08:27:01 -07:00 committed by GitHub
parent 9c9483c821
commit 435c4e7b83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 );