Obfuscated
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Users can't add menu items without the edit_posts capabilityYay, found the solution.
I was originally thinking that the issue was that something was wrong with the capability for nav_menu_item post type. My eureka moment came after digging through the WordPress code and discovering that taxonomies have capabilities as well.
So the our solution was to change the capability needed:
global $wp_taxonomies; $wp_taxonomies['nav_menu']->cap->assign_terms = 'edit_theme_options';Forum: Plugins
In reply to: [WP Document Revisions] Can't Download Files Imported With Bulk Import ScriptI’ll go ahead and post my solution, in case anyone needs it. Basically ended up writing a MySQL query to fix the document paths in the database:
update wp_{siteid}_postmeta p inner join wp_sitemeta s on p.meta_value REGEXP concat('^', s.meta_value, '/.*') and s.meta_key = 'document_slug' and p.meta_key = '_wp_attached_file' set p.meta_value = substring(p.meta_value, length(s.meta_value)+2);This query assumes you’re running multi-site so replace the {siteid} in the query with the ID for your site.
I didn’t say it was a good solution. 🙂 Still would be nice to have a working import script though.
Forum: Plugins
In reply to: [User Role Editor] Unable to "apply to all sites" after upgrading to 3.12Downloaded, installed, and working beautifully. Thanks for the quick turn around!
Forum: Plugins
In reply to: [SiteTree] "Cheatin' uh?" When Posting Pages – Question About Access LevelsTested the new 1.5 release and didn’t have this issue in the new version. Thanks for the prompt fix.