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.

git-svn-id: https://develop.svn.wordpress.org/trunk@39936 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2017-01-20 20:36:07 +00:00
parent 51c38bec8b
commit 34bc9bde36
1 changed files with 3 additions and 3 deletions

View File

@ -1896,7 +1896,7 @@ function compression_test() {
*
* @param string $text The text of the button (defaults to 'Save Changes')
* @param string $type Optional. The type and CSS class(es) of the button. Core values
* include 'primary', 'secondary', 'delete'. Default 'primary'
* include 'primary', 'small', and 'large'. Default 'primary'.
* @param string $name The HTML name of the submit button. Defaults to "submit". If no
* id attribute is given in $other_attributes below, $name will be
* used as the button's id.
@ -1919,8 +1919,8 @@ function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap
* @since 3.1.0
*
* @param string $text Optional. The text of the button. Default 'Save Changes'.
* @param string $type Optional. The type of button. Accepts 'primary', 'secondary',
* or 'delete'. Default 'primary large'.
* @param string $type Optional. The type and CSS class(es) of the button. Core values
* include 'primary', 'small', and 'large'. Default 'primary large'.
* @param string $name Optional. The HTML name of the submit button. Defaults to "submit".
* If no id attribute is given in $other_attributes below, `$name` will
* be used as the button's id. Default 'submit'.