Make WordPress Core

Changeset 35730


Ignore:
Timestamp:
11/23/2015 05:14:39 PM (9 years ago)
Author:
helen
Message:

Pass the $post object as context to postmeta_form_keys.

see #33885, #18979.

File:
1 edited

Legend:

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

    r35725 r35730  
    585585     *
    586586     * @param array|null $keys Pre-defined meta keys to be used in place of a postmeta query. Default null.
     587     * @param WP_Post    $post The current post object.
    587588     */
    588     $keys = apply_filters( 'postmeta_form_keys', null );
     589    $keys = apply_filters( 'postmeta_form_keys', null, $post );
    589590
    590591    if ( null === $keys ) {
Note: See TracChangeset for help on using the changeset viewer.