plugin updates
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
Plugin URI: http://www.joomunited.com
|
||||
Description: WP media Folder is a WordPress plugin that enhance the WordPress media manager by adding a folder manager inside.
|
||||
Author: Joomunited
|
||||
Version: 5.9.10
|
||||
Version: 5.9.11
|
||||
Update URI: https://www.joomunited.com/juupdater_files/wp-media-folder.json
|
||||
Author URI: http://www.joomunited.com
|
||||
Text Domain: wpmf
|
||||
@@ -79,9 +79,11 @@ if (!defined('WPMF_TAXO')) {
|
||||
define('_WPMF_GALLERY_PREFIX', '_wpmf_gallery_');
|
||||
define('WPMF_PLUGIN_URL', plugin_dir_url(__FILE__));
|
||||
define('WPMF_DOMAIN', 'wpmf');
|
||||
define('WPMF_VERSION', '5.9.10');
|
||||
define('WPMF_VERSION', '5.9.11');
|
||||
define('WPMF_HIDE_USER_MEDIA_FOLDER_ROOT', true);
|
||||
|
||||
// disable warning function _load_textdomain_just_in_time was called incorrectly
|
||||
add_filter('doing_it_wrong_trigger_error', '__return_false');
|
||||
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
||||
//Include the jutranslation helpers
|
||||
include_once('jutranslation' . DIRECTORY_SEPARATOR . 'jutranslation.php');
|
||||
@@ -1648,13 +1650,20 @@ if ($remote_video) {
|
||||
*/
|
||||
function wpmfFindImages($content)
|
||||
{
|
||||
if (!class_exists('DOMDocument')) {
|
||||
return $content;
|
||||
}
|
||||
if (preg_match_all('/(<img[^>]+>)/i', $content, $matches)) {
|
||||
if (isset($matches[0]) && is_array($matches[0])) {
|
||||
foreach ($matches[0] as $img) {
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadHTML($img, LIBXML_NOERROR);
|
||||
$src = $dom->getElementsByTagName('img')->item(0)->getAttribute('src');
|
||||
$type = $dom->getElementsByTagName('img')->item(0)->getAttribute('data-type');
|
||||
$imgItem = $dom->getElementsByTagName('img')->item(0);
|
||||
if (empty($imgItem)) {
|
||||
return $content;
|
||||
}
|
||||
$src = $imgItem->getAttribute('src');
|
||||
$type = $imgItem->getAttribute('data-type');
|
||||
if ($type === 'wpmfgalleryimg') {
|
||||
return $content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user