From 622d3e13387ed7a8d6dd1fc6443eb4ad1c83b388 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 8 Feb 2014 22:10:19 +0000 Subject: [PATCH] Clarify `submit_button()` `$type` parameter docs to mention that the value doubles as the CSS class attribute. See #27070 git-svn-id: https://develop.svn.wordpress.org/trunk@27135 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 020cf8fa90..35089d65eb 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1618,7 +1618,8 @@ function compression_test() { * @since 3.1.0 * * @param string $text The text of the button (defaults to 'Save Changes') - * @param string $type The type of button. One of: primary, secondary, delete + * @param string $type Optional. The type and CSS class(es) of the button. Core values + * include 'primary', 'secondary', 'delete'. 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. * @param bool $wrap True if the output button should be wrapped in a paragraph tag,