Hello,
activating EM5.02 either on a single blog or network wide, I can't upload or choose any images from the mediathek anymore. Deactivating the EM5.02, everything works. Activating it, the following message appears:
Fatal error: Call to undefined function get_post_thumbnail_id() in /data/projects/info-notes/wp/wp-admin/includes/media.php on line 1173
Copy of lines 1166 to 1176 are as follows:
$thumbnail = '';
$calling_post_id = 0;
if ( isset( $_GET['post_id'] ) )
$calling_post_id = absint( $_GET['post_id'] );
elseif ( isset( $_POST ) && count( $_POST ) ) // Like for async-upload where $_GET['post_id'] isn't set
$calling_post_id = $post->post_parent;
if ( 'image' == $type && $calling_post_id && current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) )
&& post_type_supports( get_post_type( $calling_post_id ), 'thumbnail' ) && get_post_thumbnail_id( $calling_post_id ) != $attachment_id ) {
$ajax_nonce = wp_create_nonce( "set_post_thumbnail-$calling_post_id" );
$thumbnail = "" . esc_html__( "Use as featured image" ) . "";
}