Cameron Macintosh
Forum Replies Created
-
Forum: Plugins
In reply to: [User Photo] Error: has_cap called with deprecated argumentHi JonDaley,
Good catch there. I would recommend you open up a new discussion thread for the issue you discovered and your solution. It will
- make it easier for others to discover and
- make it less likely for the plugin author to not address it because they didn’t completely read this thread. ( Of course, there’s no telling when/if this plugin will ever get updated again.)
Cheers!
Forum: Fixing WordPress
In reply to: Help tracking down an incorrect wp_enqueue_* callHow would I go about requesting this as a feature in WordPress Core?
Forum: Plugins
In reply to: [User Photo] Error: has_cap called with deprecated argumentBump
Forum: Plugins
In reply to: [Simple Import Users] PHP Notice: has_cap called with deprecated argumentI’m also running on PHP 5.6.
Forum: Plugins
In reply to: [User Photo] Error: has_cap called with deprecated argumentArg! Same here. I started with a new client a few months ago and have been going through their debug logs to address errors in their custom themes & plugins. It is maddening how much this error fills up my debug logs and obscures real issues.
In my opinion, the
add_options_page()
call should be changed to this:add_options_page('User Photo', 'User Photo', 'edit_users', __FILE__, 'userphoto_options_page');
If you can edit users, you should probably also have the ability to set the parameters of the user photos. This definitely seems like Administrator role territory.
I tried looking up what User level 8 means and couldn’t really make heads or tails of it, nor do I want to waste any more of my time with this.
Forum: Fixing WordPress
In reply to: Help tracking down an incorrect wp_enqueue_* callI found my problem through process of elimination on my plugins and found where I was calling wp_enqueue_script directly rather than through one of those actions.
Still, would be nice if the handle could be included in the error message. no hint makes it too tempting to ignore the notice.
Forum: Networking WordPress
In reply to: How to Confgure plugins individually in multisite?Without knowing any specifics of your plugin’s features, you should be able to create a setting for your plugin to drive behavior on a per-site basis. Check out this codex page: https://codex.www.ads-software.com/Settings_API. I believe that just adds a page under “Settings” in the wp-admin. If you have a bunch of settings, you can make an entire menu for them using https://codex.www.ads-software.com/Function_Reference/add_menu_page and https://codex.www.ads-software.com/Function_Reference/add_submenu_page
Forum: Plugins
In reply to: [Seriously Simple Podcasting] cant find episode numberI struggled with the same thing. Would it be possible to add something that draws more attention to this from a content author’s perspective? At a minimum, spit out the text of the shortcode on the episode edit screen that one can paste into any wysiwyg field. More involved would be to add an “Add Episode” button that provides some UI sugar to lookup the postID and auto-populate a default shortcode.
Just some thoughts. Otherwise, thanks for a great plugin!