mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-26 18:52:54 +00:00
Docs: Misc. docblock enhancements in WP_REST_Menu_Items_Controller class, as per docblock standards.
See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53679 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e4f2830618
commit
19768866db
@ -17,7 +17,7 @@
|
||||
class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
|
||||
|
||||
/**
|
||||
* Get the nav menu item, if the ID is valid.
|
||||
* Gets the nav menu item, if the ID is valid.
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
@ -107,7 +107,6 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
|
||||
* @since 5.9.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.
|
||||
*/
|
||||
public function create_item( $request ) {
|
||||
@ -199,7 +198,6 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
|
||||
* @since 5.9.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.
|
||||
*/
|
||||
public function update_item( $request ) {
|
||||
@ -488,7 +486,7 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
* @param WP_Post $item Post object.
|
||||
* @param WP_Post $item Post object.
|
||||
* @param WP_REST_Request $request Request object.
|
||||
* @return WP_REST_Response Response object.
|
||||
*/
|
||||
@ -676,7 +674,7 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve Link Description Objects that should be added to the Schema for the posts collection.
|
||||
* Retrieves Link Description Objects that should be added to the Schema for the posts collection.
|
||||
*
|
||||
* @since 5.9.0
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user