WordPress.org

Make WordPress Core

Changeset 51302


Ignore:
Timestamp:
07/01/2021 10:01:44 PM (5 months ago)
Author:
johnbillion
Message:

Docs: Further type corrections and improvements for various docblocks.

See #53399

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image-edit.php

    r51177 r51302  
    374374         * @deprecated 3.5.0 Use {@see 'wp_save_image_editor_file'} instead.
    375375         *
    376          * @param mixed           $override  Value to return instead of saving. Default null.
    377          * @param string          $filename  Name of the file to be saved.
    378          * @param WP_Image_Editor $image     The image editor instance.
    379          * @param string          $mime_type The mime type of the image.
    380          * @param int             $post_id   Attachment post ID.
     376         * @param bool|null        $override  Value to return instead of saving. Default null.
     377         * @param string           $filename  Name of the file to be saved.
     378         * @param resource|GdImage $image     The image editor instance.
     379         * @param string           $mime_type The mime type of the image.
     380         * @param int              $post_id   Attachment post ID.
    381381         */
    382382        $saved = apply_filters_deprecated(
  • trunk/src/wp-admin/includes/media.php

    r51230 r51302  
    716716 * @since 2.5.0
    717717 *
    718  * @return mixed void|object WP_Error on failure
     718 * @return null|array|void Array of error messages keyed by attachment ID, null or void on success.
    719719 */
    720720function media_upload_form_handler() {
  • trunk/src/wp-admin/includes/post.php

    r51116 r51302  
    979979 * @global wpdb $wpdb WordPress database abstraction object.
    980980 *
    981  * @return mixed
     981 * @return string[] Array of meta key names.
    982982 */
    983983function get_meta_keys() {
     
    10141014 * @global wpdb $wpdb WordPress database abstraction object.
    10151015 *
    1016  * @param int $postid
    1017  * @return mixed
     1016 * @param int $postid A post ID.
     1017 * @return array {
     1018 *     Array of meta data arrays for the given post ID.
     1019 *
     1020 *     @type array ...$0 {
     1021 *         Associative array of meta data.
     1022 *
     1023 *         @type string $meta_key   Meta key.
     1024 *         @type mixed  $meta_value Meta value.
     1025 *         @type string $meta_id    Meta ID as a numeric string.
     1026 *         @type string $post_id    Post ID as a numeric string.
     1027 *     }
     1028 * }
    10181029 */
    10191030function has_meta( $postid ) {
  • trunk/src/wp-admin/includes/taxonomy.php

    r49927 r51302  
    2020 * @param int|string $cat_name Category name.
    2121 * @param int        $parent   Optional. ID of parent term.
    22  * @return mixed
     22 * @return string|null Returns the category ID as a numeric string if the pairing exists, null if not.
    2323 */
    2424function category_exists( $cat_name, $parent = null ) {
     
    216216 *
    217217 * @param int|string $tag_name
    218  * @return mixed
     218 * @return mixed Returns null if the term does not exist.
     219 *               Returns an array of the term ID and the term taxonomy ID if the pairing exists.
     220 *               Returns 0 if term ID 0 is passed to the function.
    219221 */
    220222function tag_exists( $tag_name ) {
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-search-controller.php

    r51000 r51302  
    5151     *
    5252     * @since 5.0.0
    53      * @var array
     53     * @var WP_REST_Search_Handler[]
    5454     */
    5555    protected $search_handlers = array();
Note: See TracChangeset for help on using the changeset viewer.