diff --git src/wp-admin/includes/nav-menu.php src/wp-admin/includes/nav-menu.php
index cb94fe2..8cff7ff 100644
|
|
function wp_get_nav_menu_to_edit( $menu_id = 0 ) { |
937 | 937 | * |
938 | 938 | * @since 3.0.0 |
939 | 939 | * |
940 | | * @return string|WP_Error $output The menu formatted to edit or error object on failure. |
| 940 | * @return array Columns. |
941 | 941 | */ |
942 | 942 | function wp_nav_menu_manage_columns() { |
943 | 943 | return array( |
944 | | '_title' => __('Show advanced menu properties'), |
945 | | 'cb' => '<input type="checkbox" />', |
946 | | 'title-attribute' => __('Title Attribute'), |
947 | | 'link-target' => __('Link Target'), |
948 | | 'css-classes' => __('CSS Classes'), |
949 | | 'xfn' => __('Link Relationship (XFN)'), |
950 | | 'description' => __('Description'), |
| 944 | '_title' => __( 'Show advanced menu properties' ), |
| 945 | 'cb' => '<input type="checkbox" />', |
| 946 | 'link-target' => __( 'Link Target' ), |
| 947 | 'attr-title' => __( 'Title Attribute' ), |
| 948 | 'css-classes' => __( 'CSS Classes' ), |
| 949 | 'xfn' => __( 'Link Relationship (XFN)' ), |
| 950 | 'description' => __( 'Description' ), |
951 | 951 | ); |
952 | 952 | } |
953 | 953 | |
diff --git src/wp-admin/js/customize-nav-menus.js src/wp-admin/js/customize-nav-menus.js
index bcebb65..bfe3144 100644
|
|
|
216 | 216 | .prop( 'tabIndex', -1 ) |
217 | 217 | .removeClass( 'is-visible' ); |
218 | 218 | } |
219 | | |
| 219 | |
220 | 220 | this.searchTerm = event.target.value; |
221 | 221 | this.pages.search = 1; |
222 | 222 | this.doSearch( 1 ); |
… |
… |
|
631 | 631 | }, |
632 | 632 | |
633 | 633 | hidden: function() { |
634 | | this.hidden = function() { |
635 | | return $( '.hide-column-tog' ).not( ':checked' ).map( function() { |
636 | | var id = this.id; |
637 | | return id.substring( id, id.length - 5 ); |
638 | | }).get().join( ',' ); |
639 | | }; |
| 634 | return $( '.hide-column-tog' ).not( ':checked' ).map( function() { |
| 635 | var id = this.id; |
| 636 | return id.substring( 0, id.length - 5 ); |
| 637 | }).get().join( ',' ); |
640 | 638 | } |
641 | 639 | } ); |
642 | 640 | |
diff --git src/wp-includes/customize/class-wp-customize-nav-menus-panel.php src/wp-includes/customize/class-wp-customize-nav-menus-panel.php
index e3be24b..094a766 100644
|
|
class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel { |
34 | 34 | * @access public |
35 | 35 | */ |
36 | 36 | public function render_screen_options() { |
37 | | // Essentially adds the screen options. |
38 | | add_filter( 'manage_nav-menus_columns', array( $this, 'wp_nav_menu_manage_columns' ) ); |
| 37 | // Adds the screen options. |
| 38 | require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; |
| 39 | add_filter( 'manage_nav-menus_columns', 'wp_nav_menu_manage_columns' ); |
39 | 40 | |
40 | 41 | // Display screen options. |
41 | 42 | $screen = WP_Screen::get( 'nav-menus.php' ); |
… |
… |
class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel { |
48 | 49 | * Link title attribute added as it's a relatively advanced concept for new users. |
49 | 50 | * |
50 | 51 | * @since 4.3.0 |
51 | | * @access public |
52 | | * |
53 | | * @return array The advanced menu properties. |
| 52 | * @deprecated 4.5.0 Deprecated in favor of wp_nav_menu_manage_columns(). |
54 | 53 | */ |
55 | 54 | public function wp_nav_menu_manage_columns() { |
56 | | return array( |
57 | | '_title' => __( 'Show advanced menu properties' ), |
58 | | 'cb' => '<input type="checkbox" />', |
59 | | 'link-target' => __( 'Link Target' ), |
60 | | 'attr-title' => __( 'Title Attribute' ), |
61 | | 'css-classes' => __( 'CSS Classes' ), |
62 | | 'xfn' => __( 'Link Relationship (XFN)' ), |
63 | | 'description' => __( 'Description' ), |
64 | | ); |
| 55 | _deprecated_function( __METHOD__, '4.5.0', 'wp_nav_menu_manage_columns' ); |
| 56 | require_once ABSPATH . 'wp-admin/includes/nav-menu.php'; |
| 57 | return wp_nav_menu_manage_columns(); |
65 | 58 | } |
66 | 59 | |
67 | 60 | /** |