Tag Info

New answers tagged

0

From WordPress Codex: Changing the capabilities of a role or user is persistent, meaning the added capability will stay in effect until explicitly revoked. You might want to do something like: $roleObject = get_role( 'editor' ); if ($roleObject->has_cap( 'edit_theme_options' ) ) { $roleObject->remove_cap( 'edit_theme_options' ); }


2

If you want to test your custom SQL to see how it affects the loading time, you can try this query swapping: /** * Restrict the potential slow query in the meta_form() to the current post ID. * * @see http://wordpress.stackexchange.com/a/187712/26350 */ add_action( 'add_meta_boxes_post', function( $post ) { add_filter( 'query', function( $sql ) ...


0

Removing the metaboxes also prevents the slow query. function remove_metaboxes() { remove_meta_box( 'postcustom', 'page', 'normal' ); } add_action('admin_menu', 'remove_metaboxes');


0

Ok, I found the problem. It was WordPress Move Comments plug-in's issue and the problem solved by disabling this plugin. I'll say this problem to the developers today.


0

Find all the functions "get_avatar" used in your theme folder. Identify the wrong calls echo get_avatar($comment,$size='48',$default='<path_to_url>' ); or echo get_avatar($comment,48,'<path_to_url>' ); If you find these,then change it to echo get_avatar( $comment, 48 ); . Hope this gonna help you :)



Top 50 recent answers are included