Make WordPress Core

Ticket #59768: 5605.diff

File 5605.diff, 2.6 KB (added by fushar, 2 years ago)
  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index 1d4a8e8da1..49b4f084bb 100644
    a b function compression_test() { 
    25492549 * @param bool         $wrap             True if the output button should be wrapped in a paragraph tag,
    25502550 *                                       false otherwise. Defaults to true.
    25512551 * @param array|string $other_attributes Other attributes that should be output with the button, mapping
    2552  *                                       attributes to their values, such as setting tabindex to 1, etc.
     2552 *                                       attributes to their values, such as setting the id attribute, etc.
    25532553 *                                       These key/value attribute pairs will be output as attribute="value",
    25542554 *                                       where attribute is the key. Other attributes can also be provided
    2555  *                                       as a string such as 'tabindex="1"', though the array format is
     2555 *                                       as a string such as 'id="search-submit"', though the array format is
    25562556 *                                       preferred. Default null.
    25572557 */
    25582558function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap = true, $other_attributes = null ) {
    function submit_button( $text = null, $type = 'primary', $name = 'submit', $wrap 
    25732573 * @param bool         $wrap             Optional. True if the output button should be wrapped in a paragraph
    25742574 *                                       tag, false otherwise. Default true.
    25752575 * @param array|string $other_attributes Optional. Other attributes that should be output with the button,
    2576  *                                       mapping attributes to their values, such as `array( 'tabindex' => '1' )`.
     2576 *                                       mapping attributes to their values, such as `array( 'id' => 'search-submit' )`.
    25772577 *                                       These attributes will be output as `attribute="value"`, such as
    2578  *                                       `tabindex="1"`. Other attributes can also be provided as a string such
    2579  *                                       as `tabindex="1"`, though the array format is typically cleaner.
     2578 *                                       `id="search-submit"`. Other attributes can also be provided as a string such
     2579 *                                       as `id="search-submit"`, though the array format is typically cleaner.
    25802580 *                                       Default empty.
    25812581 * @return string Submit button HTML.
    25822582 */