Make WordPress Core


Ignore:
Timestamp:
03/28/2019 09:58:45 PM (5 years ago)
Author:
johnbillion
Message:

Options, Meta APIs: Ensure the $object_id parameter passed to the delete_{$meta_type}_meta and deleted_{$meta_type}_meta filters is always an integer.

Props salcode

Fixes #43561

File:
1 edited

Legend:

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

    r45036 r45064  
    813813    // Fetch the meta and go on if it's found.
    814814    if ( $meta = get_metadata_by_mid( $meta_type, $meta_id ) ) {
    815         $object_id = $meta->{$column};
     815        $object_id = (int) $meta->{$column};
    816816
    817817        /** This action is documented in wp-includes/meta.php */
Note: See TracChangeset for help on using the changeset viewer.