diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/includes/class-walker-nav-menu-checklist.php
--- a/wp/wp-admin/includes/class-walker-nav-menu-checklist.php Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-admin/includes/class-walker-nav-menu-checklist.php Mon Oct 14 18:28:13 2019 +0200
@@ -15,7 +15,6 @@
*/
class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
/**
- *
* @param array $fields
*/
public function __construct( $fields = false ) {
@@ -36,7 +35,7 @@
* @param array $args Not used.
*/
public function start_lvl( &$output, $depth = 0, $args = array() ) {
- $indent = str_repeat( "\t", $depth );
+ $indent = str_repeat( "\t", $depth );
$output .= "\n$indent
\n";
}
@@ -52,7 +51,7 @@
* @param array $args Not used.
*/
public function end_lvl( &$output, $depth = 0, $args = array() ) {
- $indent = str_repeat( "\t", $depth );
+ $indent = str_repeat( "\t", $depth );
$output .= "\n$indent
";
}
@@ -74,9 +73,9 @@
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
global $_nav_menu_placeholder;
- $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
- $possible_object_id = isset( $item->post_type ) && 'nav_menu_item' == $item->post_type ? $item->object_id : $_nav_menu_placeholder;
- $possible_db_id = ( ! empty( $item->ID ) ) && ( 0 < $possible_object_id ) ? (int) $item->ID : 0;
+ $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval( $_nav_menu_placeholder ) - 1 : -1;
+ $possible_object_id = isset( $item->post_type ) && 'nav_menu_item' == $item->post_type ? $item->object_id : $_nav_menu_placeholder;
+ $possible_db_id = ( ! empty( $item->ID ) ) && ( 0 < $possible_object_id ) ? (int) $item->ID : 0;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
@@ -84,34 +83,37 @@
$output .= '';
+ $output .= '';
// Menu item hidden fields
$output .= '';
- $output .= '';
- $output .= '';
- $output .= '';
- $output .= '';
- $output .= '';
- $output .= '';
- $output .= '';
- $output .= '';
- $output .= '';
+ $output .= '';
+ $output .= '';
+ $output .= '';
+ $output .= '';
+ $output .= '';
+ $output .= '';
+ $output .= '';
+ $output .= '';
+ $output .= '';
}
} // Walker_Nav_Menu_Checklist