Make WordPress Core

Ticket #54729: 54729.diff

File 54729.diff, 3.3 KB (added by azouamauriac, 3 years ago)

in src/wp-includes/class-wp-user.php use third person in function docblock

  • src/wp-includes/class-wp-user.php

     
    178178        }
    179179
    180180        /**
    181          * Return only the main user fields
     181         * Returns only the main user fields
    182182         *
    183183         * @since 3.3.0
    184184         * @since 4.4.0 Added 'ID' as an alias of 'id' for the `$field` parameter.
     
    389389        }
    390390
    391391        /**
    392          * Determine whether the user exists in the database.
     392         * Determines whether the user exists in the database.
    393393         *
    394394         * @since 3.4.0
    395395         *
     
    400400        }
    401401
    402402        /**
    403          * Retrieve the value of a property or meta key.
     403         * Retrieves the value of a property or meta key.
    404404         *
    405405         * Retrieves from the users and usermeta table.
    406406         *
     
    414414        }
    415415
    416416        /**
    417          * Determine whether a property or meta key is set
     417         * Determines whether a property or meta key is set
    418418         *
    419419         * Consults the users and usermeta tables.
    420420         *
     
    428428        }
    429429
    430430        /**
    431          * Return an array representation.
     431         * Returns an array representation.
    432432         *
    433433         * @since 3.5.0
    434434         *
     
    455455        }
    456456
    457457        /**
    458          * Set up capability object properties.
     458         * Sets up capability object properties.
    459459         *
    460460         * Will set the value for the 'cap_key' property to current database table
    461461         * prefix, followed by 'capabilities'. Will then check to see if the
     
    529529        }
    530530
    531531        /**
    532          * Add role to user.
     532         * Adds role to user.
    533533         *
    534534         * Updates the user's meta data option with capabilities and roles.
    535535         *
     
    563563        }
    564564
    565565        /**
    566          * Remove role from user.
     566         * Removes role from user.
    567567         *
    568568         * @since 2.0.0
    569569         *
     
    591591        }
    592592
    593593        /**
    594          * Set the role of the user.
     594         * Sets the role of the user.
    595595         *
    596596         * This will remove the previous roles of the user and assign the user the
    597597         * new one. You can set the role to an empty string and it will remove all
     
    651651        }
    652652
    653653        /**
    654          * Choose the maximum level the user has.
     654         * Chooses the maximum level the user has.
    655655         *
    656656         * Will compare the level from the $item parameter against the $max
    657657         * parameter. If the item is incorrect, then just the $max parameter value
     
    678678        }
    679679
    680680        /**
    681          * Update the maximum user level for the user.
     681         * Updates the maximum user level for the user.
    682682         *
    683683         * Updates the 'user_level' user metadata (includes prefix that is the
    684684         * database table prefix) with the maximum user level. Gets the value from
     
    695695        }
    696696
    697697        /**
    698          * Add capability and grant or deny access to capability.
     698         * Adds capability and grant or deny access to capability.
    699699         *
    700700         * @since 2.0.0
    701701         *
     
    710710        }
    711711
    712712        /**
    713          * Remove capability from user.
     713         * Removes capability from user.
    714714         *
    715715         * @since 2.0.0
    716716         *
     
    727727        }
    728728
    729729        /**
    730          * Remove all of the capabilities of the user.
     730         * Removes all of the capabilities of the user.
    731731         *
    732732         * @since 2.1.0
    733733         *
     
    824824        }
    825825
    826826        /**
    827          * Convert numeric level to level capability name.
     827         * Converts numeric level to level capability name.
    828828         *
    829829         * Prepends 'level_' to level number.
    830830         *
     
    838838        }
    839839
    840840        /**
    841          * Set the site to operate on. Defaults to the current site.
     841         * Sets the site to operate on. Defaults to the current site.
    842842         *
    843843         * @since 3.0.0
    844844         * @deprecated 4.9.0 Use WP_User::for_site()