Make WordPress Core

Ticket #43229: 43229.diff

File 43229.diff, 567 bytes (added by danieltj, 8 years ago)

Patch to include all three object types.

  • wp-admin/edit-form-advanced.php

    diff --git wp-admin/edit-form-advanced.php wp-admin/edit-form-advanced.php
    index 2400521..653a941 100644
    if ( post_type_supports( $post_type, 'author' ) && current_user_can( $post_type_ 
    328328 *
    329329 * @since 3.0.0
    330330 *
    331  * @param string  $post_type Post type.
    332  * @param WP_Post $post      Post object.
     331 * @param string                     $post_type Post type.
     332 * @param WP_Post|WP_Comment|WP_Link $post      Post object.
    333333 */
    334334do_action( 'add_meta_boxes', $post_type, $post );
    335335