Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r15470 r17143  
    1414         *
    1515         * @param string $output Passed by reference.
    16          * @param int $depth Depth of page.
    1716         */
    1817        function start_lvl(&$output) {}
    … …  
    2322         *
    2423         * @param string $output Passed by reference.
    25          * @param int $depth Depth of page.
    2624         */
    2725        function end_lvl(&$output) {
    … …  
    3533         * @param object $item Menu item data object.
    3634         * @param int $depth Depth of menu item. Used for padding.
    37          * @param int $current_page Menu item ID.
    3835         * @param object $args
    3936         */
    … …  
    165162                                        <label for="edit-menu-item-description-<?php echo $item_id; ?>">
    166163                                                <?php _e( 'Description' ); ?><br />
    167                                                 <textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); ?></textarea>
     164                                                <textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
    168165                                                <span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.'); ?></span>
    169166                                        </label>
    … …  
    219216         * @param object $item Menu item data object.
    220217         * @param int $depth Depth of menu item. Used for padding.
    221          * @param int $current_page Menu item ID.
    222218         * @param object $args
    223219         */
    … …  
    250246                $output .= '<input type="hidden" class="menu-item-target" name="menu-item[' . $possible_object_id . '][menu-item-target]" value="'. esc_attr( $item->target ) .'" />';
    251247                $output .= '<input type="hidden" class="menu-item-attr_title" name="menu-item[' . $possible_object_id . '][menu-item-attr_title]" value="'. esc_attr( $item->attr_title ) .'" />';
    252                 $output .= '<input type="hidden" class="menu-item-description" name="menu-item[' . $possible_object_id . '][menu-item-description]" value="'. esc_attr( $item->description ) .'" />';
    253248                $output .= '<input type="hidden" class="menu-item-classes" name="menu-item[' . $possible_object_id . '][menu-item-classes]" value="'. esc_attr( implode( ' ', $item->classes ) ) .'" />';
    254249                $output .= '<input type="hidden" class="menu-item-xfn" name="menu-item[' . $possible_object_id . '][menu-item-xfn]" value="'. esc_attr( $item->xfn ) .'" />';
    … …  
    500495        <p class="button-controls">
    501496                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    502                 <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-primary" name="nav-menu-locations" value="<?php esc_attr_e( 'Save' ); ?>" />
     497                <?php submit_button( __( 'Save' ), 'primary', 'nav-menu-locations', false, disabled( $nav_menu_selected_id, 0, false ) ); ?>
    503498        </p>
    504499        <?php
    … …  
    653648                        <ul id="<?php echo $post_type_name; ?>checklist-most-recent" class="categorychecklist form-no-clear">
    654649                                <?php
    655                                 $recent_args = array_merge( $args, array( 'orderby' => 'post_date', 'order' => 'DESC', 'showposts' => 15 ) );
     650                                $recent_args = array_merge( $args, array( 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 15 ) );
    656651                                $most_recent = $get_posts->query( $recent_args );
    657652                                $args['walker'] = $walker;
    … …  
    674669                        ?>
    675670                        <p class="quick-search-wrap">
    676                                 <input type="text" class="quick-search regular-text input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" />
     671                                <input type="text" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" />
    677672                                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    678                                 <input type="submit" class="quick-search-submit button-secondary hide-if-js" value="<?php esc_attr_e('Search'); ?>" />
     673                                <?php submit_button( __( 'Search' ), 'quick-search-submit button-secondary hide-if-js', 'submit', false ); ?>
    679674                        </p>
    680675
    … …  
    901896                        ?>
    902897                        <p class="quick-search-wrap">
    903                                 <input type="text" class="quick-search regular-text input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" />
     898                                <input type="text" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" />
    904899                                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    905                                 <input type="submit" class="quick-search-submit button-secondary hide-if-js" value="<?php esc_attr_e('Search'); ?>" />
     900                                <?php submit_button( __( 'Search' ), 'quick-search-submit button-secondary hide-if-js', 'submit', false ); ?>
    906901                        </p>
    907902
    … …  
    11031098 * @since 3.0.0
    11041099 *
    1105  * @param string $menu_item_id The ID of the menu item to format.
    11061100 * @return string|WP_Error $output The menu formatted to edit or error object on failure.
    11071101 */
Note: See TracChangeset for help on using the changeset viewer.