Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57371, comment 2


Ignore:
Timestamp:
04/29/2023 05:02:37 PM (2 years ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57371, comment 2

    initial v1  
    33The global `$post` variable should stay. According to the [https://developer.wordpress.org/reference/functions/setup_postdata/ setup_postdata documentation], "`setup_postdata()` does **not** assign the global `$post` variable so it’s important that you do this yourself."
    44
    5 When removing the last parameter from the `twentytwenty_filter_wp_list_pages_item_classes` and `twentytwenty_add_sub_toggles_to_main_menu` functions, also remove the parameter from those functions' documentation and decrease the count argument in the related filters.
     5When removing the last parameter from the `twentytwenty_filter_wp_list_pages_item_classes` and `twentytwenty_add_sub_toggles_to_main_menu` functions, also remove the parameter from those functions' documentation and decrease the count argument in the related filters. (See #57397)