Make WordPress Core

Ticket #62112: 62112.2.patch

File 62112.2.patch, 2.5 KB (added by viralsampat, 16 months ago)

I have checked above mentioned issue and founds few files. Here, I have added its patch.

  • src/wp-content/themes/twentytwenty/inc/template-tags.php

    diff --git src/wp-content/themes/twentytwenty/inc/template-tags.php src/wp-content/themes/twentytwenty/inc/template-tags.php
    index 858ecc1631..e5ab3105f3 100644
    function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) 
    520520 * @since Twenty Twenty 1.0
    521521 *
    522522 * @param string[] $css_class    An array of CSS classes to be applied to each list item.
    523  * @param WP_Post  $page         Page data object.
    524  * @param int      $depth        Depth of page, used for padding.
    525523 * @param array    $args         An array of arguments.
    526  * @param int      $current_page ID of the current page.
    527524 * @return array CSS class names.
    528525 */
    529526function twentytwenty_filter_wp_list_pages_item_classes( $css_class, $page, $depth, $args, $current_page ) {
    add_filter( 'page_css_class', 'twentytwenty_filter_wp_list_pages_item_classes', 
    558555 *
    559556 * @param stdClass $args  An object of wp_nav_menu() arguments.
    560557 * @param WP_Post  $item  Menu item data object.
    561  * @param int      $depth Depth of menu item. Used for padding.
    562558 * @return stdClass An object of wp_nav_menu() arguments.
    563559 */
    564560function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) {
    add_filter( 'nav_menu_item_args', 'twentytwenty_add_sub_toggles_to_main_menu', 1 
    606602 *
    607603 * @param string   $item_output The menu item's starting HTML output.
    608604 * @param WP_Post  $item        Menu item data object.
    609  * @param int      $depth       Depth of the menu. Used for padding.
    610605 * @param stdClass $args        An object of wp_nav_menu() arguments.
    611606 * @return string The menu item output with social icon.
    612607 */
  • src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php

    diff --git src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
    index 6955fc7c1b..720b3cfda2 100644
    class Twenty_Twenty_One_Dark_Mode { 
    235235         *
    236236         * @since Twenty Twenty-One 1.0
    237237         *
     238         * @global $current_screen
    238239         * @param string $classes The admin body-classes.
    239240         * @return string
    240241         */
    class Twenty_Twenty_One_Dark_Mode { 
    266267         * @since Twenty Twenty-One 1.0
    267268         *
    268269         * @return bool
     270         * @global $is_IE
    269271         */
    270272        public function switch_should_render() {
    271273                global $is_IE;