Make WordPress Core


Ignore:
Timestamp:
06/27/2023 02:20:18 PM (3 years ago)
Author:
Bernhard Reiter
Message:

Editor: update Wordpress npm packages.

Updates the wordpress npm packages and their dependencies to the latest versions, as well as auto-updates to relevant core PHP files.

Props youknowriad, joemcgill, spacedmonkey, ramonopoly, peterwilsoncc, bernhard-reiter, tyxla, dmsnell.
Fixes #58623.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/page-list.php

    r55246 r56065  
    151151                return;
    152152        }
    153         $markup = '';
     153        $front_page_id = (int) get_option( 'page_on_front' );
     154        $markup        = '';
    154155        foreach ( (array) $nested_pages as $page ) {
    155156                $css_class       = $page['is_active'] ? ' current-menu-item' : '';
     
    182183                }
    183184
    184                 $front_page_id = (int) get_option( 'page_on_front' );
    185185                if ( (int) $page['page_id'] === $front_page_id ) {
    186186                        $css_class .= ' menu-item-home';
     
    283283                                'page_id'   => $page->ID,
    284284                                'title'     => $page->post_title,
    285                                 'link'      => get_permalink( $page->ID ),
     285                                'link'      => get_permalink( $page ),
    286286                                'is_active' => $is_active,
    287287                        );
     
    290290                                'page_id'   => $page->ID,
    291291                                'title'     => $page->post_title,
    292                                 'link'      => get_permalink( $page->ID ),
     292                                'link'      => get_permalink( $page ),
    293293                                'is_active' => $is_active,
    294294                        );
Note: See TracChangeset for help on using the changeset viewer.