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:
commit
5e9253980b
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue