WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/17/2010 06:47:34 PM (9 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

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

    r16431 r16438  
    21202120    endswitch;
    21212121    $text = ( NULL == $text ) ? __( 'Save Changes' ) : $text;
    2122    
     2122
    21232123    $attributes = '';
    21242124    if ( is_array( $other_attributes ) ) {
     
    21292129        $attributes = $other_attributes;
    21302130    }
    2131    
     2131
    21322132    // Default the id attribute to $name unless an id was specifically provided in $other_attributes
    21332133    $id = $name;
    21342134    if ( is_array( $other_attributes ) && isset( $other_attributes['id'] ) )
    21352135        $id = $other_attributes['id'];
    2136    
     2136
    21372137    $button = '<input type="submit" name="' . esc_attr( $name ) . '" id="' . esc_attr( $id ) . '" class="' . esc_attr( $class );
    21382138    $button .= '" value="' . esc_attr( $text ) . '" ' . $attributes . ' />';
    2139    
     2139
    21402140    if ( $wrap ) {
    21412141        $button = '<p class="submit">' . $button . '</p>';
    21422142    }
    2143    
     2143
    21442144    return $button;
    21452145}
Note: See TracChangeset for help on using the changeset viewer.