Bug fix for enable-media-replace WordPress plugin