Make WordPress Core

Changeset 30203


Ignore:
Timestamp:
11/03/2014 07:08:16 AM (10 years ago)
Author:
wonderboymusic
Message:

Correct some types in wp-admin/*-location files' doc blocks.

See #30224.

Location:
trunk/src/wp-admin/includes
Files:
5 edited

Legend:

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

    r28475 r30203  
    5151 * @since 2.0.0
    5252 *
    53  * @return object Default link
     53 * @return stdClass Default link
    5454 */
    5555function get_default_link_to_edit() {
  • trunk/src/wp-admin/includes/dashboard.php

    r29787 r30203  
    11121112 * @since 3.0.0
    11131113 *
    1114  * @return bool True if not multisite, user can't upload files, or the space check option is disabled.
     1114 * @return bool|null True if not multisite, user can't upload files, or the space check option is disabled.
    11151115*/
    11161116function wp_dashboard_quota() {
  • trunk/src/wp-admin/includes/file.php

    r30105 r30203  
    164164 * @param string $file file the users is attempting to edit
    165165 * @param array $allowed_files Array of allowed files to edit, $file must match an entry exactly
    166  * @return null
     166 * @return string|null
    167167 */
    168168function validate_file_to_edit( $file, $allowed_files = '' ) {
     
    810810 * @param array $args (optional) Connection args, These are passed directly to the WP_Filesystem_*() classes.
    811811 * @param string $context (optional) Context for get_filesystem_method(), See function declaration for more information.
    812  * @return boolean false on failure, true on success
     812 * @return null|boolean false on failure, true on success
    813813 */
    814814function WP_Filesystem( $args = false, $context = false ) {
  • trunk/src/wp-admin/includes/image-edit.php

    r29259 r30203  
    77 */
    88
     9/**
     10 * @param int $post_id
     11 * @param bool|object $msg
     12 */
    913function wp_image_editor($post_id, $msg = false) {
    1014    $nonce = wp_create_nonce("image_editor-$post_id");
     
    555559}
    556560
     561/**
     562 * @param int $post_id
     563 * @return stdClass
     564 */
    557565function wp_restore_image($post_id) {
    558566    $meta = wp_get_attachment_metadata($post_id);
  • trunk/src/wp-admin/includes/media.php

    r30202 r30203  
    571571add_action( 'media_buttons', 'media_buttons' );
    572572
     573/**
     574 *
     575 * @global int $post_ID
     576 * @param string $type
     577 * @param int $post_id
     578 * @param string $tab
     579 * @return string
     580 */
    573581function get_upload_iframe_src( $type = null, $post_id = null, $tab = null ) {
    574582    global $post_ID;
     
    718726 * @since 2.5.0
    719727 *
    720  * @return mixed
     728 * @return null|string
    721729 */
    722730function wp_media_upload_handler() {
     
    10921100 * @since 2.5.0
    10931101 *
    1094  * @param WP_Post $post       The WP_Post attachment object.
    1095  * @param array   $attachment An array of attachment metadata.
     1102 * @param array $post       The WP_Post attachment object converted to an array.
     1103 * @param array $attachment An array of attachment metadata.
    10961104 * @return array Filtered attachment post object.
    10971105 */
     
    11181126 * @param integer $attachment_id
    11191127 * @param array $attachment
    1120  * @return array
     1128 * @return string
    11211129 */
    11221130function image_media_send_to_editor($html, $attachment_id, $attachment) {
     
    11421150 * @since 2.5.0
    11431151 *
    1144  * @param object $post
     1152 * @param WP_Post $post
    11451153 * @param array $errors
    11461154 * @return array
Note: See TracChangeset for help on using the changeset viewer.