Make WordPress Core

Ticket #43504: 43504.patch

File 43504.patch, 2.0 KB (added by milana_cap, 7 years ago)
  • src/wp-includes/capabilities.php

     
    325325                                 * @since 3.3.0 As 'auth_post_meta_{$meta_key}'.
    326326                                 * @since 4.6.0
    327327                                 *
    328                                  * @param bool   $allowed  Whether the user can add the post meta. Default false.
    329                                  * @param string $meta_key The meta key.
    330                                  * @param int    $post_id  Post ID.
    331                                  * @param int    $user_id  User ID.
    332                                  * @param string $cap      Capability name.
    333                                  * @param array  $caps     User capabilities.
     328                                 * @param bool   $allowed   Whether the user can add the post meta. Default false.
     329                                 * @param string $meta_key  The meta key.
     330                                 * @param int    $object_id Object ID.
     331                                 * @param int    $user_id   User ID.
     332                                 * @param string $cap       Capability name.
     333                                 * @param array  $caps      User capabilities.
    334334                                 */
    335335                                $allowed = apply_filters( "auth_{$object_type}_meta_{$meta_key}", false, $meta_key, $object_id, $user_id, $cap, $caps );
    336336
     
    347347                                 * @since 4.6.0 As 'auth_post_{$post_type}_meta_{$meta_key}'.
    348348                                 * @since 4.7.0
    349349                                 *
    350                                  * @param bool   $allowed  Whether the user can add the post meta. Default false.
    351                                  * @param string $meta_key The meta key.
    352                                  * @param int    $post_id  Post ID.
    353                                  * @param int    $user_id  User ID.
    354                                  * @param string $cap      Capability name.
    355                                  * @param array  $caps     User capabilities.
     350                                 * @param bool   $allowed   Whether the user can add the post meta. Default false.
     351                                 * @param string $meta_key  The meta key.
     352                                 * @param int    $object_id Object ID.
     353                                 * @param int    $user_id   User ID.
     354                                 * @param string $cap       Capability name.
     355                                 * @param array  $caps      User capabilities.
    356356                                 */
    357357                                $allowed = apply_filters( "auth_{$object_type}_{$sub_type}_meta_{$meta_key}", $allowed, $meta_key, $object_id, $user_id, $cap, $caps );