From de97319ad8e7ce8baed08d332ef12d3b98088834 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 8 Feb 2014 22:11:15 +0000 Subject: [PATCH] Clarify `submit_button()` `$type` parameter docs to mention that the value doubles as the CSS class attribute. See #27070 Built from https://develop.svn.wordpress.org/trunk@27135 git-svn-id: http://core.svn.wordpress.org/trunk@27002 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 020cf8fa90..35089d65eb 100644 --- a/wp-admin/includes/template.php +++ b/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,