Dashboard says “no posts found” even though there are some posts

Try the fix posted here: http://sourceforge.net/tracker/?func=detail&aid=3485384&group_id=315685&atid=1328061 It worked for me. translations.php line 726 Change this: $pattern = ‘/LIMIT\s*(\d+)((\s*,?\s*)(\d+))(;{0,1})$/is’; to this: $pattern = ‘/LIMIT\s(\d+)((\s*,?\s*)(\d+)*);{0,1}$/is’; Removing the extra parentheses allows “LIMIT 0, 10” to become “TOP 10”. With the extra parentheses, the “0” is used instead.

How to customize the WP admin default help contents

Files to look at: wp-admin/includes/wp-current-screen.php and wp-admin/admin-header.php If we take a look at admin-header.php we can see that $current_screen->render_screen_meta(); is the one responsible for rendering the contextual help on screens. It gets the global $current_screen which is set via WP_Screen class. It has methods like get_help_tabs,get_help_tab,add_help_tab,remove_help_tab,remove_help_tabs , set_help_sidebar which sets and removes the tabs we … Read more

How do I create a new WP admin color scheme?

This code works with WordPress 5.2 and is correct. You now need to go to your Profile and select it by going to Users > Your Profile > Admin Color Scheme select the scheme and save. Edit: Adding updated code for your colors CSS file since you’re using a child theme: function additional_admin_color_schemes() { wp_admin_css_color( … Read more

Can I set a default dashboard layout for all users?

Hi @Relequestual: I think what you want is here: Dashboard Widgets API / Advanced: Forcing your widget to the top It doesn’t require you to change code per se, just to add the code like shown in the WordPress Codex to your theme’s functions.php file which is a standard way to customize and/or extend WordPress: … Read more

How to remove the site health dashboard widget?

The following snippet removes the registered site health dashboard widget from the dashboard. Add the code to your plugin or functions.php file: add_action(‘wp_dashboard_setup’, ‘remove_site_health_dashboard_widget’); function remove_site_health_dashboard_widget() { remove_meta_box(‘dashboard_site_health’, ‘dashboard’, ‘normal’); }