Make WordPress Core

Changeset 53513


Ignore:
Timestamp:
06/16/2022 03:19:08 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add @since notes for html5 theme feature changes in add_theme_support():

  • As of WordPress 3.6.1, the html5 feature requires an array of types to be passed. Defaults to comment-list, comment-form, search-form for backward compatibility.
  • As of WordPress 6.0, the previously added _doing_it_wrong() notice is actually displayed as expected.

Follow-up to [25193], [25235], [25785], [49344], [49354], [52828].

Props bobbingwide.
See #51657, #55646.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r53455 r53513  
    25242524 * @since 3.4.0 The `custom-header-uploads` feature was deprecated.
    25252525 * @since 3.6.0 The `html5` feature was added.
     2526 * @since 3.6.1 The `html5` feature requires an array of types to be passed. Defaults to
     2527 *              'comment-list', 'comment-form', 'search-form' for backward compatibility.
    25262528 * @since 3.9.0 The `html5` feature now also accepts 'gallery' and 'caption'.
    25272529 * @since 4.1.0 The `title-tag` feature was added.
     
    25362538 * @since 5.5.0 The `core-block-patterns` feature was added and is enabled by default.
    25372539 * @since 5.5.0 The `custom-logo` feature now also accepts 'unlink-homepage-logo'.
    2538  * @since 5.6.0 The `post-formats` feature warns if no array is passed.
     2540 * @since 5.6.0 The `post-formats` feature warns if no array is passed as the second parameter.
    25392541 * @since 5.8.0 The `widgets-block-editor` feature enables the Widgets block editor.
     2542 * @since 6.0.0 The `html5` feature warns if no array is passed as the second parameter.
    25402543 *
    25412544 * @global array $_wp_theme_features
Note: See TracChangeset for help on using the changeset viewer.