[wp-trac] [WordPress Trac] #49539: Twenty Twenty: fix theme issues
WordPress Trac
noreply at wordpress.org
Wed Jan 17 06:23:36 UTC 2024
#49539: Twenty Twenty: fix theme issues
---------------------------+-------------------------------
Reporter: fahimmurshed | Owner: poena
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Bundled Theme | Version: 5.3
Severity: normal | Resolution: wontfix
Keywords: needs-patch | Focuses: coding-standards
---------------------------+-------------------------------
Changes (by poena):
* status: assigned => closed
* resolution: => wontfix
* milestone: Future Release =>
Comment:
The content_width is not as relevant when the theme's CSS controls the
max-width.
Block content like embeds and other media can also be set to both wide or
full width.
Because of this I am closing this ticket as wontfix.
Updating it to use a filter like in this code example from twenty nineteen
is an easy fix if someone feels that the ticket needs to be reopened:
{{{
/**
* Set the content width in pixels, based on the theme's design and
stylesheet.
*
* Priority 0 to make it available to lower priority callbacks.
*
* @global int $content_width Content width.
*/
function twentynineteen_content_width() {
$GLOBALS['content_width'] = apply_filters(
'twentynineteen_content_width', 640 );
}
add_action( 'after_setup_theme', 'twentynineteen_content_width', 0 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49539#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list