Make WordPress Core


Ignore:
Timestamp:
05/30/2014 05:37:36 PM (11 years ago)
Author:
DrewAPicture
Message:

Remove unnecessary "not used" notation for filter parameters in wp-admin/includes/media.php.

Also add @param and @return descriptions.

See #28408.

File:
1 edited

Legend:

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

    r28567 r28632  
    10291029 * @since 2.5.0
    10301030 *
    1031  * @param array $form_fields
    1032  * @param object $post {@internal $post not used}}
    1033  * @return array
     1031 * @param array   $form_fields An array of attachment form fields.
     1032 * @param WP_Post $post        The WP_Post attachment object.
     1033 * @return array Filtered attachment form fields.
    10341034 */
    10351035function media_single_attachment_fields_to_edit( $form_fields, $post ) {
     
    10431043 * @since 2.8.0
    10441044 *
    1045  * @param array $form_fields
    1046  * @param object $post {@internal $post not used}}
    1047  * @return array
     1045 * @param array   $form_fields An array of attachment form fields.
     1046 * @param WP_Post $post        The WP_Post attachment object.
     1047 * @return array Filtered attachment form fields.
    10481048 */
    10491049function media_post_single_attachment_fields_to_edit( $form_fields, $post ) {
     
    10611061 * @since 2.5.0
    10621062 *
    1063  * @param object $post
    1064  * @param array $attachment {@internal $attachment not used}}
    1065  * @return array
     1063 * @param WP_Post $post       The WP_Post attachment object.
     1064 * @param array   $attachment An array of attachment metadata.
     1065 * @return array Filtered attachment post object.
    10661066 */
    10671067function image_attachment_fields_to_save( $post, $attachment ) {
Note: See TracChangeset for help on using the changeset viewer.