scribu
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] Connections Types read-onlyThe Tools screen is read-only. The conversion form appears only when you have connections in the DB for which the code that registers that connection type was changed or removed.
Forum: Plugins
In reply to: [Proper Network Activation] Has PNA finally made it into Core?How are things coming along?
I don’t know, since I’m not involved in WordPress development anymore: http://scribu.net/blog/left-wordpress.html
Also, can someone knowledgeable comment on CETS Multisite Dashboard Crawler? Is it attempting to do the same thing as PNA?
Yes, it is trying to address the same problem, albeit using a different approach.
Forum: Plugins
In reply to: [Posts 2 Posts] Uninstall procedureIs it safe to simply delete the p2p and p2p_meta tables?
Yep. The tables should be deleted automatically if you uninstall the plugin using wp-admin or wp-cli.
Forum: Plugins
In reply to: [Posts 2 Posts] Page Navigation with Wp-PagenaviYou can pass a
WP_Queryinstance to WP PageNavi:wp_pagenavi( array( 'query' => $connected ) );I don’t have time to work on this, but I would be willing to review and merge a patch or pull request that addresses the problem.
Here’s the github repo: https://github.com/scribu/wp-term-management-tools
Forum: Plugins
In reply to: [Term Management Tools] bug: if( $referer = wp_get_referer() && false …Forum: Plugins
In reply to: [Term Management Tools] [plugin Term Management Tools] french translationHello,
Sure, please send it to [email protected]
Or, if your’e familiar with Github, you can open a pull request: https://github.com/scribu/wp-term-management-tools
Forum: Plugins
In reply to: [Posts 2 Posts] Adding Support For Buddypress GroupsI was looking at creating something similar to P2P_User like P2P_BPGroup but unsure how this this would be connect in the register connection function.
The
P2P_Userclass is just a decorator for makingWP_Userobjects look more similar toWP_Postobjects. The real logic for handling connections is in theP2P_Side_Userclass.If you follow the code flow starting from
p2p_register_connection_type(), you’ll eventually reachP2P_Connection_Type_Factory::create_side(), which has this line:$class = 'P2P_Side_' . ucfirst( $object_type );So, if you want to register a connection type with
'from' => 'bpgroup'or'to' => 'bpgroup'(or both), you’re going to need a class that’s calledP2P_Side_Bpgroup.Any help would be excellent, once complete I will issue a pull request so it can be integrated in a future release.
I think it would be better if you opened a PR just as soon as you make any sort of progress. That way, I can see what you’ve done so far and answer questions inline.
The notice is not an error in the plugin. It’s there to warn you that you’re registering the connection type too early.
It will go away if you use the ‘p2p_init’ hook, as described in the docs: https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage
Forum: Plugins
In reply to: [Smarter Navigation] WP super cache integration issuesTo make this work, you’d have to modify the Smarter Navigation plugin to use AJAX for generating the links, as hinted in the WP Super Cache FAQ (the “How do I make certain parts of the page stay dynamic?” question).
I am not sure if that can be done, while still maintaining the performance that WP Super Cache brings in the first place. Full-page caching (the same output for all users) is fundamentally at odds with personalization (different output for each user).
The next-best solution would be to use object-caching, provided by W3 Total Cache, Memcached Object Cache etc.
Forum: Plugins
In reply to: [Posts 2 Posts] Non reciprocalSince you’re linking pages to pages, you should be seeing two P2P metaboxes when editing a page in wp-admin. To show just one metabox, just set
'admin_box' => 'from'in the parameters forp2p_register_connection_type().Forum: Plugins
In reply to: [Posts 2 Posts] Javascript error out of the boxForum: Plugins
In reply to: [Posts 2 Posts] Bug in box.js with spinnerYep, it was a typo. This is now in master:
Thanks.
Forum: Plugins
In reply to: [Front-end Editor] Remote File Upload VulnerabilityThe vulnerability in question is http://1337day.com/exploit/18930 which has been fixed since version 2.3.
Forum: Plugins
In reply to: [Front-end Editor] Remote File Upload VulnerabilityHello,
In order to fix the vulnerability, I first need to know what it is. Could you send me an email with more details? My address is scribu AT gmail DOT com.