| @@ -101,9 +101,9 @@ | ||
| 101 | 101 | * @param array $posts Posts. |
| 102 | 102 | * @return array |
| 103 | 103 | */ |
| 104 | 104 | public function set_post_to_publish( $posts ) { |
| 105 | - remove_filter( 'posts_results', array( $this, 'set_post_to_publish' ), 10, 2 ); | |
| 105 | + remove_filter( 'posts_results', array( $this, 'set_post_to_publish' ), 10 ); | |
| 106 | 106 | |
| 107 | 107 | if ( empty( $posts ) || is_user_logged_in() || ! $this->is_frame_nonce_valid() ) { |
| 108 | 108 | return $posts; |
| 109 | 109 | } |