Merge pull request #22566 from jenkoian/change-for-network-media-library-compatibility

Remove possibe superfluous wp_attachment_is_image() filter.
This commit is contained in:
Mike Jolley 2019-01-31 14:20:35 +00:00 committed by GitHub
commit 5e9253980b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -1257,10 +1257,6 @@ class WC_Product extends WC_Abstract_Legacy_Product {
public function set_gallery_image_ids( $image_ids ) {
$image_ids = wp_parse_id_list( $image_ids );
if ( $this->get_object_read() ) {
$image_ids = array_filter( $image_ids, 'wp_attachment_is_image' );
}
$this->set_prop( 'gallery_image_ids', $image_ids );
}