Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add types to _wp_migrate_menu_to_navigation_post
  • Loading branch information
noisysocks committed Nov 12, 2021
commit 86d97efafc627bacdbb165aca47cb7d19eaffdbf
2 changes: 1 addition & 1 deletion src/wp-includes/navigation-areas.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function get_navigation_areas() {
* @param WP_Theme $new_theme New theme.
* @param WP_Theme $old_theme Old theme.
*/
function _wp_migrate_menu_to_navigation_post( $new_name, $new_theme, $old_theme ) {
function _wp_migrate_menu_to_navigation_post( $new_name, WP_Theme $new_theme, WP_Theme $old_theme ) {
// Do nothing when switching to a theme that does not support site editor.
if ( ! wp_is_block_template_theme() ) {
return;
Expand Down