Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/wp-includes/block-supports/custom-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ function wp_render_custom_css_class_name( $block_content, $block ) {
/**
* Registers the style block attribute for block types that support it.
*
* @since 7.0.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — backported in WordPress/gutenberg#83116

While checking the rest of this PR against Gutenberg lib/, WP_Theme_JSON::process_pseudo_selectors() turned out to be synced too (lib/class-wp-theme-json-gutenberg.php), so I included it in the same Gutenberg PR. The other nine functions here have no counterpart in lib/, so they should be core-only.

One thing worth a second opinion: lib/block-supports/custom-css.php has no @since tags at all today, so the Gutenberg side adds the first one to that file. lib/class-wp-theme-json-gutenberg.php already uses @since throughout, so that half is consistent either way. Happy to drop the custom-css.php change from both PRs if you would rather leave that file alone.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

*
* @param WP_Block_Type $block_type Block Type.
*/
function wp_register_custom_css_support( $block_type ) {
Expand Down
2 changes: 2 additions & 0 deletions src/wp-includes/class-wp-block-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,8 @@ public function has_closing_flag(): bool {
* $is_core_paragraph = $processor->is_block_type( 'core/paragraph' );
* $is_formula = $processor->is_block_type( 'math-block/formula' );
*
* @since 6.9.0
*
* @param string $block_type Block type name for the desired block.
* E.g. "paragraph", "core/paragraph", "math-blocks/formula".
* @return bool Whether this delimiter represents a block of the given type.
Expand Down
2 changes: 2 additions & 0 deletions src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,8 @@ protected static function schema_in_root_and_per_origin( $schema ) {
/**
* Processes pseudo-selectors for any node (block or variation).
*
* @since 7.0.0
*
* @param array $node The node data (block or variation).
* @param string $base_selector The base selector.
* @param array $settings The theme settings.
Expand Down
2 changes: 2 additions & 0 deletions src/wp-includes/class-wp-token-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ private function read_small_token( string $text, int $offset = 0, &$matched_toke
* ':?' => '😕',
* );
*
* @since 6.6.0
*
* @return array The lookup key/substitution values as an associate array.
*/
public function to_array(): array {
Expand Down
2 changes: 2 additions & 0 deletions src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5133,6 +5133,8 @@ private function bookmark_token() {
/**
* Indicates the namespace of the current token, or "html" if there is none.
*
* @since 6.7.0
*
* @return string One of "html", "math", or "svg".
*/
public function get_namespace(): string {
Expand Down
4 changes: 4 additions & 0 deletions src/wp-includes/html-api/class-wp-html-tag-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,8 @@ public function set_bookmark( $name ): bool {
* Releasing a bookmark frees up the small
* performance overhead it requires.
*
* @since 6.2.0
*
* @param string $name Name of the bookmark to remove.
* @return bool Whether the bookmark already existed before removal.
*/
Expand Down Expand Up @@ -5086,6 +5088,8 @@ private function matches(): bool {
* This method can be called to perform a full parse of the DOCTYPE token and retrieve
* its information.
*
* @since 6.7.0
*
* @return WP_HTML_Doctype_Info|null The DOCTYPE declaration information or `null` if not
* currently at a DOCTYPE node.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function __construct() {

/**
* Registers the necessary REST API routes.
*
* @since 5.5.0
*/
public function register_routes() {
register_rest_route(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,8 @@ protected function check_target_post_permission( int $post_id, WP_REST_Request $
/**
* Check if post type supports notes.
*
* @since 6.9.0
*
* @param string $post_type Post type name.
* @return bool True if post type supports notes, false otherwise.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ protected function prepare_links( $post ) {
/**
* Prepares child font face links for the request.
*
* @since 6.5.0
*
* @param int $font_family_id Font family post ID.
* @return array Links for the child font face posts.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class WP_Sitemaps_Stylesheet {
/**
* Renders the XSL stylesheet depending on whether it's the sitemap index or not.
*
* @since 5.5.0
*
* @param string $type Stylesheet type. Either 'sitemap' or 'index'.
* @return never
*/
Expand Down
Loading