mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 14:17:06 +00:00
Docs: Promote many bool types to true or false where only that value is used.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -140,7 +140,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return bool|WP_Error True if the request has read access, otherwise false or WP_Error object.
|
||||
* @return true|WP_Error True if the request has read access, otherwise false or WP_Error object.
|
||||
*/
|
||||
public function get_items_permissions_check( $request ) {
|
||||
$tax_obj = get_taxonomy( $this->taxonomy );
|
||||
@@ -347,7 +347,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return bool|WP_Error True if the request has read access for the item, otherwise false or WP_Error object.
|
||||
* @return true|WP_Error True if the request has read access for the item, otherwise false or WP_Error object.
|
||||
*/
|
||||
public function get_item_permissions_check( $request ) {
|
||||
$term = $this->get_term( $request['id'] );
|
||||
@@ -392,7 +392,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return bool|WP_Error True if the request has access to create items, false or WP_Error object otherwise.
|
||||
* @return true|WP_Error True if the request has access to create items, false or WP_Error object otherwise.
|
||||
*/
|
||||
public function create_item_permissions_check( $request ) {
|
||||
|
||||
@@ -528,7 +528,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return bool|WP_Error True if the request has access to update the item, false or WP_Error object otherwise.
|
||||
* @return true|WP_Error True if the request has access to update the item, false or WP_Error object otherwise.
|
||||
*/
|
||||
public function update_item_permissions_check( $request ) {
|
||||
$term = $this->get_term( $request['id'] );
|
||||
@@ -629,7 +629,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param WP_REST_Request $request Full details about the request.
|
||||
* @return bool|WP_Error True if the request has access to delete the item, otherwise false or WP_Error object.
|
||||
* @return true|WP_Error True if the request has access to delete the item, otherwise false or WP_Error object.
|
||||
*/
|
||||
public function delete_item_permissions_check( $request ) {
|
||||
$term = $this->get_term( $request['id'] );
|
||||
|
||||
Reference in New Issue
Block a user