post_mime_types Filter not Working in List Mode

The problem lies in the attachment-filter= URL parameter. The slash between application/pdf (or else) is being escaped twice. When you replace the %252F with a slash or %2F the filter will work. The first escaping (/ becomes %2F) happens when WP is building the selectbox containing the mime types. The second one (%2F becomes %252F) … Read more

WordPress Admin is displaying Not Available

There are different reasons why this can happen. In your case I think it may be a security plugin that has changed the deafult login URL to something else. When I go to http://www.philenglish.com.cn/wp-login.php I get a 404 error, which is something such plugins also do: they make the default login URLs unavailable in an … Read more

Reordering themes in admin panel

The get_themes function passes the available themes to the theme list table class and is hardcoded with a call to asort the array, with no filters available anywhere along the way that i can see. So in short, not possible at present due to an absence of hooks(at least as far as my observations go). … Read more

Show message on wordpress admin dashboard

When you redirect the user to the admin dashboard pass on a GET variable named “success_notice”, for example. So you get a URL like this: /wp-admin/index.php?success_notice=1. With that setup, just add the code that shows the success message on the dashboard only if that GET variable is set. add_action(‘admin_notices’, ‘wpse75629_admin_notice’); function wpse75629_admin_notice() { global $pagenow; … Read more

WP-Admin not working properly at WordPress multisite with subdirectories

If you installed WordPress Multisite starting with version 3.0 to 3.4.2, you’ve got the correct .htaccess file contents. However, if you started with a newer version (3.5 or higher)—and I’m assuming you did, if you’ve just installed WordPress Multisite recently—your .htaccess file should look like this: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # … Read more

TinyMCE custom styles remove class when switching styles

Seems the question was asked at community.tinymce.com and the answer is here: https://community.tinymce.com/communityQuestion?id=90661000000IiyjAAC You can’t make the style you’ve defined remove any previous classes, but what you can do is ‘apply’ the style again by selecting it from the dropdown list and it will be removed – i.e. the class will be removed from the … Read more