WordPress.org

Making WordPress.org

Ticket #3680: 3680.patch

File 3680.patch, 796 bytes (added by keesiemeijer, 3 years ago)

remove filter

  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/registrations.php

     
    2929
    3030                // Register P2P relationships.
    3131                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                }
    3239        }
    3340
    3441        /**