WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 09:56:43 PM (9 years ago)
Author:
markjaquith
Message:

Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064

File:
1 edited

Legend:

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

    r15588 r16061  
    495495                    </select>
    496496                    <input type="hidden" name="action" value="edit" />
    497                     <input class="button-secondary" name="select_menu" type="submit" value="<?php esc_attr_e('Select'); ?>" />
     497                    <?php submit_button( __( 'Select' ), 'secondary', 'select_menu', false ); ?>
    498498                </form>
    499499            </div>
     
    557557                                <br class="clear" />
    558558                                <div class="publishing-action">
    559                                     <input class="button-primary menu-save" name="save_menu" type="submit" value="<?php empty($nav_menu_selected_id) ? esc_attr_e('Create Menu') : esc_attr_e('Save Menu'); ?>" />
     559                                    <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false ); ?>
    560560                                </div><!-- END .publishing-action -->
    561561
     
    594594                        <div class="major-publishing-actions">
    595595                        <div class="publishing-action">
    596                             <input class="button-primary menu-save" name="save_menu" type="submit" value="<?php empty($nav_menu_selected_id) ? esc_attr_e('Create Menu') : esc_attr_e('Save Menu'); ?>" />
     596                            <?php submit_button( empty( $nav_menu_selected_id ) ? __( 'Create Menu' ) : __( 'Save Menu' ), 'button-primary menu-save', 'save_menu', false ); ?>
    597597                        </div>
    598598                        </div>
Note: See TracChangeset for help on using the changeset viewer.