Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58223


Ignore:
Timestamp:
04/30/2023 12:20:08 AM (7 months ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58223 – Description

    initial v1  
    1 There’s a bug in the Twenty Twenty theme in twentytwenty_get_post_meta. The bug prevents the action hooks twentytwenty_start_of_post_meta_list and twentytwenty_end_of_post_meta_list from displaying additional meta data when the default meta data fields are not populated.
     1There’s a bug in the Twenty Twenty theme in `twentytwenty_get_post_meta`. The bug prevents the action hooks `twentytwenty_start_of_post_meta_list` and `twentytwenty_end_of_post_meta_list` from displaying additional meta data when the default meta data fields are not populated.
    22
    3 The variable $has_meta must be true for any meta to be displayed. It is set to false initially and is only set to true if one of the default meta are provided. For single-bottom, if no tags are in the post, $has_meta will be false regardless of additional meta attempting to be displayed by the action hooks.
     3The variable `$has_meta` must be true for any meta to be displayed. It is set to `false` initially and is only set to `true` if one of the default meta are provided. For `single-bottom`, if no tags are in the post, `$has_meta` will be false regardless of additional meta attempting to be displayed by the action hooks.
    44
    5 I solved the bug by defining $has_meta as a global inside twentytwenty_get_post_meta. From there, I was able to modify it’s value to true within my action hook function.
     5I solved the bug by defining `$has_meta` as a global inside `twentytwenty_get_post_meta`. From there, I was able to modify its value to true within my action hook function.
    66
    77Hope this can be fixed in the published version of the theme so I don’t have to use a hacked version.