diff --git src/wp-content/themes/twentytwentyone/functions.php src/wp-content/themes/twentytwentyone/functions.php
index f163e394df..4631df7d69 100644
|
|
|
add_action( 'widgets_init', 'twenty_twenty_one_widgets_init' );
|
| 375 | 375 | * @return void |
| 376 | 376 | */ |
| 377 | 377 | function twenty_twenty_one_content_width() { |
| 378 | | // This variable is intended to be overruled from themes. |
| 379 | | // Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}. |
| 380 | | // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound |
| | 378 | /** |
| | 379 | * Filters Twenty Twenty content width of the theme. |
| | 380 | * |
| | 381 | * @since Twenty Twenty-One 1.0 |
| | 382 | * |
| | 383 | * @param int $content_width Content width in pixels. |
| | 384 | */ |
| 381 | 385 | $GLOBALS['content_width'] = apply_filters( 'twenty_twenty_one_content_width', 750 ); |
| 382 | 386 | } |
| 383 | 387 | add_action( 'after_setup_theme', 'twenty_twenty_one_content_width', 0 ); |