Skip to content

Commit

Permalink
Coding Standards: Remove unnecessary access and internal annotations …
Browse files Browse the repository at this point in the history
…from two functions in WP_REST_Templates_Controller.

This commit removes unnecessary access and internal annotations from two functions that are private and as such don't require the annotation. It also adds the since annotation with the 6.5 release given that the annotation may be useful.

Props swissspidy.
See #60358.
Built from https://develop.svn.wordpress.org/trunk@57374


git-svn-id: https://core.svn.wordpress.org/trunk@56880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
jorgefilipecosta committed Jan 29, 2024
1 parent 5da9c3a commit 68c472c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,7 @@ public function prepare_item_for_response( $item, $request ) {
/**
* Returns the source from where the template originally comes from.
*
* @access private
* @internal
* @since 6.5.0
*
* @param WP_Block_Template $template_object Template instance.
* @return string Original source of the template one of theme, plugin, site, or user.
Expand Down Expand Up @@ -808,8 +807,7 @@ private static function get_wp_templates_original_source_field( $template_object
/**
* Returns a human readable text for the author of the template.
*
* @access private
* @internal
* @since 6.5.0
*
* @param WP_Block_Template $template_object Template instance.
* @return string Human readable text for the author.
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.5-alpha-57373';
$wp_version = '6.5-alpha-57374';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 68c472c

Please sign in to comment.