bniblett2013
Forum Replies Created
-
Forum: Plugins
In reply to: [Taxonomy Images] Media Library appears empty (WP 3.6)Don’t know if this is a fix for anybody here..
I have WP 3.7.1, I was getting errors when selecting images.
I had debug mode on, found out that it used a function (image_resize) that was deprecated.. Images couldn’t be cropped..
In the plugin folder, file ‘taxonomy-images.php’ around line 175 has:
/* Attempt to create a new downsized version of the original image. */ $new = image_resize( $path, $detail['size'][0], $detail['size'][1], $detail['size'][2] );I just replaced with:
# file name & path (without filename) $filename = basename( $path ); $folderurl = str_replace( $filename, "", $path ); # strip extension from filename, save seperatly $filename = explode( ".", $filename ); $extension = $filename[ count( $filename ) - 1 ]; unset( $filename[ count( $filename ) - 1 ] ); $filename = implode( ".", $filename ); # use new WP function $new = wp_get_image_editor( $path ); if ( ! is_wp_error( $new ) ) { $new->resize( $detail['size'][0], $detail['size'][1], $detail['size'][2] ); $new->save( $filename ."75x75.". $extension ); }I just put this together real quick, hope it helps:
# global global $wpseo_admin; # this removes when editing 'YOUR PROFILE' remove_action( 'show_user_profile', array( $wpseo_admin, 'user_profile' ) ); # this removes when editing 'EDIT PROFILE' remove_action( 'edit_user_profile', array( $wpseo_admin, 'user_profile' ) );Just a note in case someone can’t get this to work (like me at first):
If you have changed the order of the meta boxes manually, it will overwrite any filters added above (or at least it did for me).
To reset your meta-box order, i searched the database with the following query (phpMyAdmin or any other tool you use)
SELECT * FROM wp_usermeta WHERE user_id=1 AND meta_key LIKE 'meta-box%'Each row returned will be a different post type, so just delete the row associated with the post type you want to reset.