Make WordPress Core

Changeset 30673


Ignore:
Timestamp:
11/30/2014 10:55:08 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve various @param docs.

See #30224.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r30652 r30673  
    344344 * @since 1.0.0
    345345 *
    346  * @param string $option Name of option to add. Expected to not be SQL-escaped.
    347  * @param mixed $value Optional. Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
    348  * @param mixed $deprecated Optional. Description. Not used anymore.
    349  * @param bool $autoload Optional. Default is enabled. Whether to load the option when WordPress starts up.
     346 * @param string         $option      Name of option to add. Expected to not be SQL-escaped.
     347 * @param mixed          $value      Optional. Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
     348 * @param string         $deprecated Optional. Description. Not used anymore.
     349 * @param string|bool    $autoload    Optional. Default is enabled. Whether to load the option when WordPress starts up.
    350350 * @return bool False if option was not added and true if option was added.
    351351 */
     
    776776 * @param string $name The name of the setting.
    777777 * @param string $value The value for the setting.
    778  * @return bool true if set successfully/false if not.
     778 * @return null|bool true if set successfully/false if not.
    779779 */
    780780function set_user_setting( $name, $value ) {
     
    798798 * @since 2.7.0
    799799 *
    800  * @param mixed $names The name or array of names of the setting to be deleted.
    801  * @return bool true if deleted successfully/false if not.
     800 * @param string $names The name or array of names of the setting to be deleted.
     801 * @return null|bool true if deleted successfully/false if not.
    802802 */
    803803function delete_user_setting( $names ) {
     
    869869 *
    870870 * @param array $user_settings
    871  * @return bool
     871 * @return null|bool
    872872 */
    873873function wp_set_all_user_settings( $user_settings ) {
  • trunk/src/wp-includes/query.php

    r30620 r30673  
    177177 * @uses $wp_query
    178178 *
    179  * @param mixed $attachment Attachment ID, title, slug, or array of such.
     179 * @param int|string|array $attachment Attachment ID, title, slug, or array of such.
    180180 * @return bool
    181181 */
     
    277277 * @uses $wp_query
    278278 *
    279  * @param mixed $taxonomy Optional. Taxonomy slug or slugs.
    280  * @param mixed $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
     279 * @param string|array $taxonomy Optional. Taxonomy slug or slugs.
     280 * @param int|string|array $term Optional. Term ID, name, slug or array of Term IDs, names, and slugs.
    281281 * @return bool
    282282 */
     
    21012101     * @since 3.7.0
    21022102     *
    2103      * @param array Terms to check.
     2103     * @param array $terms Terms to check.
    21042104     * @return array Terms that are not stopwords.
    21052105     */
     
    45414541     * @since 4.1.0
    45424542     *
    4543      * @param object $post Post data.
     4543     * @param WP_Post $post Post data.
    45444544     * @return bool True when finished.
    45454545     */
     
    46094609     *
    46104610     * @since 3.7.0
    4611      *
    4612      * @return bool
    46134611     */
    46144612    public function reset_postdata() {
  • trunk/src/wp-includes/revision.php

    r30621 r30673  
    439439 * @since 3.6.0
    440440 *
    441  * @param object $post The post object.
     441 * @param WP_Post $post The post object.
    442442 * @return bool True if number of revisions to keep isn't zero, false otherwise.
    443443 */
     
    573573 * @access private
    574574 *
    575  * @param object $post Post object
     575 * @param WP_Post $post Post object
    576576 * @param array $revisions Current revisions of the post
    577577 * @return bool true if the revisions were upgraded, false if problems
  • trunk/src/wp-includes/taxonomy.php

    r30654 r30673  
    820820     *
    821821     * @param string $relation Raw relation key from the query argument.
    822      * @return Sanitized relation ('AND' or 'OR').
     822     * @return string Sanitized relation ('AND' or 'OR').
    823823     */
    824824    public function sanitize_relation( $relation ) {
     
    37373737 * @param string|array $object_ids Single or list of term object ID(s)
    37383738 * @param array|string $object_type The taxonomy object type
    3739  * @return null|bool Null value is given with empty $object_ids. False if
     3739 * @return null|false Null value is given with empty $object_ids. False if
    37403740 */
    37413741function update_object_term_cache($object_ids, $object_type) {
Note: See TracChangeset for help on using the changeset viewer.