WordPress/wp-admin
Sergey Biryukov 2f4ffff0fb Administration: Standardize default values in submit_button().
This commit updates the `submit_button()` function to standardize the default values of `$text` and `$other_attributes` parameters. Previously set to `null`, these defaults have now been changed to an empty string (`''`), bringing consistency with the `get_submit_button()` function, which `submit_button()` wraps.

The change maintains backward compatibility, as `get_submit_button()` does not perform strict type-checking on these parameters. This update aligns with the ongoing effort to standardize function parameters across the WordPress codebase, improving the readability and predictability of the core functions.

Follow-up to [31446].

Props andbalashov.
Fixes #59921.
Built from https://develop.svn.wordpress.org/trunk@57128


git-svn-id: http://core.svn.wordpress.org/trunk@56639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-11-20 00:08:25 +00:00
..
css Quick/Bulk Edit: Prevent assigning posts to default categories during bulk edit. 2023-11-08 23:22:25 +00:00
images Help/About: Improve Accessibility, RTL, Internationalization, and Responsiveness of about pages. 2023-10-27 17:03:25 +00:00
includes Administration: Standardize default values in submit_button(). 2023-11-20 00:08:25 +00:00
js Quick/Bulk Edit: Prevent assigning posts to default categories during bulk edit. 2023-11-08 23:22:25 +00:00
maint
network Administration: Use wp_admin_notice() in wp-admin/network/. 2023-09-17 19:12:21 +00:00
user
about.php Help/About: Improve translation comment around release notes. 2023-11-07 22:58:27 +00:00
admin-ajax.php
admin-footer.php
admin-functions.php
admin-header.php
admin-post.php
admin.php
async-upload.php
authorize-application.php
comment.php
contribute.php Help/About: Update the About page for 6.4. 2023-10-17 02:02:24 +00:00
credits.php Help/About: Update the About page for 6.4. 2023-10-17 02:02:24 +00:00
custom-background.php
custom-header.php
customize.php
edit-comments.php
edit-form-advanced.php
edit-form-blocks.php
edit-form-comment.php
edit-link-form.php
edit-tag-form.php
edit-tags.php
edit.php
erase-personal-data.php
export-personal-data.php
export.php
freedoms.php Help/About: Improve Accessibility, RTL, Internationalization, and Responsiveness of about pages. 2023-10-27 17:03:25 +00:00
import.php
index.php
install-helper.php
install.php
link-add.php
link-manager.php
link-parse-opml.php
link.php
load-scripts.php
load-styles.php
media-new.php
media-upload.php
media.php
menu-header.php
menu.php
moderation.php
ms-admin.php
ms-delete-site.php
ms-edit.php
ms-options.php
ms-sites.php
ms-themes.php
ms-upgrade-network.php
ms-users.php
my-sites.php
nav-menus.php
network.php
options-discussion.php
options-general.php
options-head.php
options-media.php
options-permalink.php
options-privacy.php
options-reading.php
options-writing.php
options.php Options, Meta APIs: Prevent saving of invalid timezones. 2023-10-16 23:51:24 +00:00
plugin-editor.php
plugin-install.php
plugins.php
post-new.php
post.php
press-this.php
privacy-policy-guide.php
privacy.php Help/About: Update the About page for 6.4. 2023-10-17 02:02:24 +00:00
profile.php
revision.php
setup-config.php
site-editor.php
site-health-info.php
site-health.php
term.php
theme-editor.php Administration: Fix typos in wp_admin_notice() arguments in a few instances. 2023-11-08 11:06:22 +00:00
theme-install.php
themes.php Administration: Add missing space in theme activation notices. 2023-10-08 17:56:24 +00:00
tools.php
update-core.php
update.php
upgrade-functions.php
upgrade.php
upload.php
user-edit.php Coding Standards: Correct alignment in wp-admin/user-edit.php. 2023-10-07 13:55:30 +00:00
user-new.php
users.php Users: Show "Password reset link sent" message only when finished. 2023-10-15 14:04:23 +00:00
widgets-form-blocks.php
widgets-form.php
widgets.php