WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

    r49308 r49927  
    214214     * @param string $meta_key  Key for the field.
    215215     * @param string $name      Name for the field that is exposed in the REST API.
    216      * @return bool|WP_Error True if meta field is deleted, WP_Error otherwise.
     216     * @return true|WP_Error True if meta field is deleted, WP_Error otherwise.
    217217     */
    218218    protected function delete_meta_value( $object_id, $meta_key, $name ) {
     
    256256     * @param string $name      Name for the field that is exposed in the REST API.
    257257     * @param array  $values    List of values to update to.
    258      * @return bool|WP_Error True if meta fields are updated, WP_Error otherwise.
     258     * @return true|WP_Error True if meta fields are updated, WP_Error otherwise.
    259259     */
    260260    protected function update_multi_meta_value( $object_id, $meta_key, $name, $values ) {
     
    351351     * @param string $name      Name for the field that is exposed in the REST API.
    352352     * @param mixed  $value     Updated value.
    353      * @return bool|WP_Error True if the meta field was updated, WP_Error otherwise.
     353     * @return true|WP_Error True if the meta field was updated, WP_Error otherwise.
    354354     */
    355355    protected function update_meta_value( $object_id, $meta_key, $name, $value ) {
Note: See TracChangeset for help on using the changeset viewer.