cubica/p2p-wpml — pull request #14 by laurentdinclaux (2013-07-30 12:13:55+00:00)
Title: Changes init hook priority for the hack handling duplicates

As Wordpress Codex tells to init custom post_types at the init hook, I had another look to the WPML code.

They are definitely handling their ajax the wrong way (Wordpress has specific hooks for that), but they are doing it at the init hook at the priority 15.

So, to be sure (most) custom post type have been initialized before we init P2P using that hack, it is better to do it as late as possible, but before WPML does its ajax thing: at the priority 14.