Make WordPress Core

Changeset 27135


Ignore:
Timestamp:
02/08/2014 10:10:19 PM (11 years ago)
Author:
DrewAPicture
Message:

Clarify submit_button() $type parameter docs to mention that the value doubles as the CSS class attribute.

See #27070

File:
1 edited

Legend:

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

    r27132 r27135  
    16191619 *
    16201620 * @param string $text The text of the button (defaults to 'Save Changes')
    1621  * @param string $type The type of button. One of: primary, secondary, delete
     1621 * @param string $type Optional. The type and CSS class(es) of the button. Core values
     1622 *                     include 'primary', 'secondary', 'delete'. Default 'primary'
    16221623 * @param string $name The HTML name of the submit button. Defaults to "submit". If no id attribute
    16231624 *               is given in $other_attributes below, $name will be used as the button's id.
Note: See TracChangeset for help on using the changeset viewer.