mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Docs: Fix various incorrect @since mentions.
Props costdev, mukesh27. Fixes #58834. See #57840. git-svn-id: https://develop.svn.wordpress.org/trunk@56256 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
/**
|
||||
* REST Controller to fetch a fallback Navigation Block Menu. If needed it creates one.
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*/
|
||||
class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
||||
|
||||
/**
|
||||
* The Post Type for the Controller
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
@@ -28,7 +28,7 @@ class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
||||
/**
|
||||
* Constructs the controller.
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->namespace = 'wp-block-editor/v1';
|
||||
@@ -39,7 +39,7 @@ class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
||||
/**
|
||||
* Registers the controllers routes.
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
@@ -64,7 +64,7 @@ class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
||||
/**
|
||||
* Checks if a given request has access to read fallbacks.
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return true|WP_Error True if the request has read access, WP_Error object otherwise.
|
||||
@@ -96,7 +96,7 @@ class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
||||
/**
|
||||
* Gets the most appropriate fallback Navigation Menu.
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
|
||||
@@ -116,7 +116,7 @@ class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
||||
/**
|
||||
* Retrieves the fallbacks' schema, conforming to JSON Schema.
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*
|
||||
* @return array Item schema data.
|
||||
*/
|
||||
@@ -145,7 +145,7 @@ class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
||||
/**
|
||||
* Matches the post data to the schema we want.
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*
|
||||
* @param WP_Post $item The wp_navigation Post object whose response is being prepared.
|
||||
* @param WP_REST_Request $request Request object.
|
||||
@@ -177,7 +177,7 @@ class WP_REST_Navigation_Fallback_Controller extends WP_REST_Controller {
|
||||
/**
|
||||
* Prepares the links for the request.
|
||||
*
|
||||
* @since 6.3.0.
|
||||
* @since 6.3.0
|
||||
*
|
||||
* @param WP_Post $post the Navigation Menu post object.
|
||||
* @return array Links for the given request.
|
||||
|
||||
Reference in New Issue
Block a user