Oshouki
Forum Replies Created
-
Wasn’t aware of the did_action function. You learn something new everyday!
I agree that using this method of preventing more than one custom checkbox is better suited.
However, the check of ‘post type’ == column_name does not control the appearance of the custom checkbox for specific post types, but rather ensures that it only appears if the column named ‘post type’ has been added to the table/listing of posts.
Okay, I’ll give your suggestions a try.
Forum: Plugins
In reply to: [Juiz Smart Mobile Admin] Footer overlaps contentI feel silly having brought up this issue, as it is largely unrelated to the plugin.
For a reason I was unable to find, the “wp_user-setting” meta_key had in it’s meta_value ‘unfold=1’
With this set, WP core does not add the class ‘auto-fold’ to the body tag, which this plugin uses to style a number of elements including #wpfooter.
Forum: Plugins
In reply to: [Juiz Smart Mobile Admin] Footer overlaps contentUpdate: Decided to install and test locally (on WAMP copy of my site) and found it works fine there. The difference, it seems, is that locally, the .auto-fold class is added to body, while it isn’t on my web hosted site. I will probe further.
normadize, no problem. I can see how it could have been misinterpreted now that I reread my comment. I’m glad my fix worked for you.
What I meant by custom columns is this:
This action is called one time for each custom column. Custom columns are added with the manage_edit-${post_type}_columns filter.
as quoted from WordPress Plugin API documentation: quick_edit_custom_box action hook
I’ve confirmed that this is happening in the plugin.
The problem stems from the fact that the action hooks used to add the select box to Quick Edit and Bulk Edit are called once for each custom column in the admin Posts view.
normadize, I suspect you have plugins or a theme that have introduced custom columns and therefore you are seeing multiple select dropdowns.
I recommend the plugin author to consider add the following edit to the quickedit() function to correct the issue:
public function quickedit( $column_name, $post_type ) { if ( 'post_type' !== $column_name ) return; ... the rest of existing code ... }