Media Library broken images
Media Library broken images
Media Library broken images
Can’t test at the moment but I’d try rewriting the date to variable code from: $time = current_time( ‘mysql’ ); $y = substr( $time, 0, 4 ); $m = substr( $time, 5, 2 ); $subdirectory = “/$y/$m”; To: $y = date(‘Y’); $m = date(‘m’); $subdirectory = “https://wordpress.stackexchange.com/” . $y . “https://wordpress.stackexchange.com/” . $m;
wp_enqueue_media problem
Disable Media uploader to users
I disabled the post thumbnail editor plugin, then everything started to work again as normal. But for the general advise for similar kind of issue is, disable your plugins one by one and test. Then you can find the plugin which is not compatible with wordpress update. So that you can disable that plugin at … Read more
There is no default way to do this, but this popular plugin solves the issue for most people. I have no connection to the creators of this free plugin, but I’ve used it on several sites. https://wordpress.org/plugins/enable-media-replace/
This line was missing from my .htaccess file, and I recovered it from a backup. I don’t know if WP removed it during an upgrade or some other plugin did it, but replacing it fixed the problem: #uploaded files RewriteRule ^files/(..+) wp-includes/ms-files.php?file=$1 [L] Art Smith
Use the intermediate_image_sizes filter and return an empty array: add_filter( ‘intermediate_image_sizes’, ‘__return_empty_array’ ); __return_empty_array is a helper function in WordPress, the above is all you need!
I found out myself. I had to call media_upload_header(); in the Iframe and trigger the following javascript: var html=”stuff I want to return to editor”; var win = window.dialogArguments || opener || parent || top; win.send_to_editor(html); I have no Idea how, but this works.
Issues with WordPress 3.9.6 media libraries on XAMPP