Changeset 31277
- Timestamp:
- 01/25/2015 03:38:10 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/ReplytoComment.php
r25433 r31277 43 43 } 44 44 45 public function tearDown() { 46 parent::tearDown(); 47 remove_filter( 'query', array( $this, '_block_comments' ) ); 48 } 49 45 50 /** 46 51 * Reply as a privilged user (administrator) … … 221 226 global $wpdb; 222 227 if ( false !== strpos( $sql, $wpdb->comments ) && 0 === stripos( trim ( $sql ), 'INSERT INTO') ) { 223 remove_filter( 'query', array( $this, '_block_comments' ) );224 228 return ''; 225 229 }
Note: See TracChangeset
for help on using the changeset viewer.