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
..
2023-09-25 17:06:34 +00:00
2023-07-11 05:03:23 +00:00
2023-10-12 12:47:21 +00:00
2023-05-03 10:03:21 +00:00
2023-06-22 14:36:26 +00:00
2022-08-29 12:46:10 +00:00
2022-08-29 12:46:10 +00:00
2023-09-17 15:23:22 +00:00
2023-07-09 19:52:24 +00:00
2023-10-13 12:20:20 +00:00
2023-10-13 12:20:20 +00:00
2023-06-14 06:34:27 +00:00
2022-03-22 16:25:03 +00:00
2023-06-22 14:36:26 +00:00
2023-09-09 09:28:26 +00:00
2023-05-19 13:27:20 +00:00
2023-06-14 06:34:27 +00:00
2023-06-14 06:34:27 +00:00
2023-09-09 09:28:26 +00:00
2023-06-14 06:34:27 +00:00
2023-06-14 06:34:27 +00:00
2023-09-09 09:28:26 +00:00
2023-08-24 09:01:16 +00:00
2023-09-08 09:32:23 +00:00
2023-09-14 12:46:20 +00:00
2023-06-22 14:36:26 +00:00
2023-05-08 22:37:24 +00:00
2023-09-09 09:28:26 +00:00
2023-11-17 17:11:21 +00:00
2023-09-12 15:23:18 +00:00
2023-09-02 18:36:24 +00:00
2023-10-11 07:05:25 +00:00
2023-05-03 21:30:19 +00:00
2023-05-03 21:30:19 +00:00
2023-05-03 21:30:19 +00:00
2023-11-13 11:13:27 +00:00
2023-08-14 09:59:20 +00:00
2023-06-14 12:57:20 +00:00
2023-09-22 19:58:16 +00:00
2023-11-17 17:11:21 +00:00
2023-09-22 19:58:16 +00:00
2023-09-22 19:58:16 +00:00
2023-09-22 19:58:16 +00:00
2023-11-15 09:33:26 +00:00
2023-09-17 15:23:22 +00:00
2023-10-11 04:33:32 +00:00
2022-10-04 03:47:15 +00:00
2023-09-22 19:58:16 +00:00
2022-03-10 19:22:01 +00:00
2023-09-08 09:32:23 +00:00
2023-09-17 15:23:22 +00:00
2023-09-22 19:58:16 +00:00
2023-06-22 14:57:24 +00:00
2023-09-26 00:27:12 +00:00
2023-10-22 09:05:25 +00:00
2023-04-23 04:02:18 +00:00
2023-09-22 19:58:16 +00:00
2023-06-14 06:34:27 +00:00
2023-05-08 22:37:24 +00:00
2023-06-22 14:36:26 +00:00
2023-09-10 07:33:22 +00:00
2023-09-22 19:58:16 +00:00
2022-07-20 22:15:10 +00:00
2022-09-19 23:24:11 +00:00
2023-06-22 14:36:26 +00:00
2023-11-17 17:11:21 +00:00
2023-08-25 03:37:12 +00:00
2023-06-19 18:27:27 +00:00
2023-10-29 00:16:26 +00:00
2023-09-21 18:04:16 +00:00
2023-09-29 12:21:24 +00:00
2022-07-29 09:22:10 +00:00
2022-10-04 03:47:15 +00:00
2023-09-09 09:28:26 +00:00
2023-11-06 09:27:23 +00:00
2023-09-29 17:13:24 +00:00
2023-09-21 18:24:15 +00:00
2022-09-20 02:51:09 +00:00
2022-09-20 02:51:09 +00:00
2023-09-17 15:23:22 +00:00
2023-09-17 15:23:22 +00:00
2023-09-17 15:23:22 +00:00
2023-09-21 01:27:26 +00:00
2023-07-09 20:07:22 +00:00
2023-09-14 01:13:20 +00:00
2023-09-14 01:13:20 +00:00
2023-11-08 23:22:25 +00:00
2023-06-22 14:36:26 +00:00
2023-09-08 10:03:21 +00:00
2023-09-22 00:04:41 +00:00
2023-03-10 07:04:20 +00:00
2023-11-20 00:08:25 +00:00
2023-09-08 10:03:21 +00:00
2023-10-03 15:18:19 +00:00
2022-11-29 15:51:14 +00:00
2023-11-06 17:49:25 +00:00
2023-11-08 11:06:22 +00:00
2023-11-04 00:26:20 +00:00
2023-11-17 13:29:26 +00:00
2023-09-09 09:28:26 +00:00