WordPress.org

Make WordPress Core

Changeset 39671


Ignore:
Timestamp:
01/04/17 13:22:49 (11 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct rest_insert_* duplicate hook references in REST API.

Props keesiemeijer.
Fixes #39371.

Location:
trunk/src/wp-includes/rest-api/endpoints
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

    r39598 r39671  
    226226        $attachment = get_post( $request['id'] ); 
    227227 
    228         /* This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php */ 
     228        /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php */ 
    229229        do_action( 'rest_insert_attachment', $data, $request, false ); 
    230230 
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

    r39639 r39671  
    709709        $comment = get_comment( $id ); 
    710710 
    711         /* This action is documented in lib/endpoints/class-wp-rest-comments-controller.php */ 
     711        /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php */ 
    712712        do_action( 'rest_insert_comment', $comment, $request, false ); 
    713713 
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r39639 r39671  
    652652        $post = get_post( $post_id ); 
    653653 
    654         /* This action is documented in lib/endpoints/class-wp-rest-controller.php */ 
     654        /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php */ 
    655655        do_action( "rest_insert_{$this->post_type}", $post, $request, false ); 
    656656 
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    r39648 r39671  
    501501        $term = get_term( (int) $request['id'], $this->taxonomy ); 
    502502 
    503         /* This action is documented in lib/endpoints/class-wp-rest-terms-controller.php */ 
     503        /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */ 
    504504        do_action( "rest_insert_{$this->taxonomy}", $term, $request, false ); 
    505505 
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r39639 r39671  
    607607        $user = get_user_by( 'id', $user_id ); 
    608608 
    609         /* This action is documented in lib/endpoints/class-wp-rest-users-controller.php */ 
     609        /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php */ 
    610610        do_action( 'rest_insert_user', $user, $request, false ); 
    611611 
Note: See TracChangeset for help on using the changeset viewer.