Ticket #3680: 3680.patch
File 3680.patch, 796 bytes (added by , 7 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/registrations.php
29 29 30 30 // Register P2P relationships. 31 31 add_action( 'p2p_init', array( __CLASS__, 'register_post_relationships' ) ); 32 33 global $wp_parser; 34 35 if ( $wp_parser instanceof \WP_Parser\Plugin ) { 36 // Parser is activated. Remove WP Parser methods permalink filter. 37 remove_filter( 'post_type_link', array( $wp_parser, 'method_permalink' ), 10, 2 ); 38 } 32 39 } 33 40 34 41 /**