[wp-trac] [WordPress Trac] #58223: Twenty Twenty: twentytwenty_get_post_meta needs global $has_meta
WordPress Trac
noreply at wordpress.org
Thu Jan 25 20:17:55 UTC 2024
#58223: Twenty Twenty: twentytwenty_get_post_meta needs global $has_meta
---------------------------+------------------------------
Reporter: chiefastro | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: template
---------------------------+------------------------------
Comment (by gqoxi853):
Is there a recommended best practice or official fix for the bug in the
Twenty Twenty theme's twentytwenty_get_post_meta function where the
variable $has_meta needs to be defined as global to display additional
meta data when default meta data fields are not populated? How can
WordPress users implement a solution for this issue without modifying the
core theme files?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58223#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list