From fd78085a92664db7d7c6414e1b4c4d7c99e0ca3f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 4 Jan 2017 13:23:40 +0000 Subject: [PATCH] Docs: Correct `rest_insert_*` duplicate hook references in REST API. Props keesiemeijer. Fixes #39371. Built from https://develop.svn.wordpress.org/trunk@39671 git-svn-id: http://core.svn.wordpress.org/trunk@39611 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../rest-api/endpoints/class-wp-rest-attachments-controller.php | 2 +- .../rest-api/endpoints/class-wp-rest-comments-controller.php | 2 +- .../rest-api/endpoints/class-wp-rest-posts-controller.php | 2 +- .../rest-api/endpoints/class-wp-rest-terms-controller.php | 2 +- .../rest-api/endpoints/class-wp-rest-users-controller.php | 2 +- wp-includes/version.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php index 8f0318adbe..43d057e167 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php @@ -225,7 +225,7 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller { $attachment = get_post( $request['id'] ); - /* This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php */ + /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php */ do_action( 'rest_insert_attachment', $data, $request, false ); $fields_update = $this->update_additional_fields_for_object( $attachment, $request ); diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php index be09c18038..fbe5259334 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php @@ -708,7 +708,7 @@ class WP_REST_Comments_Controller extends WP_REST_Controller { $comment = get_comment( $id ); - /* This action is documented in lib/endpoints/class-wp-rest-comments-controller.php */ + /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php */ do_action( 'rest_insert_comment', $comment, $request, false ); $schema = $this->get_item_schema(); diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php index e48767d633..ef34f626e4 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php @@ -651,7 +651,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { $post = get_post( $post_id ); - /* This action is documented in lib/endpoints/class-wp-rest-controller.php */ + /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php */ do_action( "rest_insert_{$this->post_type}", $post, $request, false ); $schema = $this->get_item_schema(); diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php index 0bdf2cd5fb..16882522c5 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php @@ -500,7 +500,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller { $term = get_term( (int) $request['id'], $this->taxonomy ); - /* This action is documented in lib/endpoints/class-wp-rest-terms-controller.php */ + /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */ do_action( "rest_insert_{$this->taxonomy}", $term, $request, false ); $schema = $this->get_item_schema(); diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php index 0d733f2aef..d3d253a38a 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php @@ -606,7 +606,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller { $user = get_user_by( 'id', $user_id ); - /* This action is documented in lib/endpoints/class-wp-rest-users-controller.php */ + /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php */ do_action( 'rest_insert_user', $user, $request, false ); if ( is_multisite() && ! is_user_member_of_blog( $id ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 264e2eadcf..c915631468 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39670'; +$wp_version = '4.8-alpha-39671'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.