Changeset 774
- Timestamp:
- 07/30/2014 10:09:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/handbook.php
r772 r774 73 73 add_action( 'widgets_init', array( $this, 'handbook_sidebar' ), 11 ); // After P2 74 74 add_action( 'wporg_email_changes_for_post_types', array( $this, 'wporg_email_changes_for_post_types' ) ); 75 add_action( 'p2_action_links', array( $this, 'disable_p2_resolved_posts_action_links' ) ); 75 76 } 76 77 … … 166 167 return $post_types; 167 168 } 169 170 /** 171 * Disable the P2 Resolved Posts plugin's action links (e.g. "Flag Unresolved"), 172 * if that plugin is active. 173 */ 174 function disable_p2_resolved_posts_action_links() { 175 if ( ( $this->post_type == get_post_type() ) && class_exists( 'P2_Resolved_Posts' ) && is_object( P2_Resolved_Posts::$instance ) ) { 176 remove_filter( 'p2_action_links', array( P2_Resolved_Posts::$instance, 'p2_action_links' ), 100 ); 177 } 178 } 179 168 180 }
Note: See TracChangeset
for help on using the changeset viewer.