Make WordPress Core

Changeset 39936


Ignore:
Timestamp:
01/20/2017 08:36:07 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Docs: After [38672], update $type parameter description for submit_button() and get_submit_button().

Remove the mention of secondary and delete classes as core values, add small and large.

Props afercia.
Fixes #23477.

File:
1 edited

Legend:

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

    r39926 r39936  
    18971897 * @param string       $text             The text of the button (defaults to 'Save Changes')
    18981898 * @param string       $type             Optional. The type and CSS class(es) of the button. Core values
    1899  *                                       include 'primary', 'secondary', 'delete'. Default 'primary'
     1899 *                                       include 'primary', 'small', and 'large'. Default 'primary'.
    19001900 * @param string       $name             The HTML name of the submit button. Defaults to "submit". If no
    19011901 *                                       id attribute is given in $other_attributes below, $name will be
     
    19201920 *
    19211921 * @param string       $text             Optional. The text of the button. Default 'Save Changes'.
    1922  * @param string       $type             Optional. The type of button. Accepts 'primary', 'secondary',
    1923  *                                       or 'delete'. Default 'primary large'.
     1922 * @param string       $type             Optional. The type and CSS class(es) of the button. Core values
     1923 *                                       include 'primary', 'small', and 'large'. Default 'primary large'.
    19241924 * @param string       $name             Optional. The HTML name of the submit button. Defaults to "submit".
    19251925 *                                       If no id attribute is given in $other_attributes below, `$name` will
Note: See TracChangeset for help on using the changeset viewer.