@@ -158,6 +158,9 @@ discard block |
||
158 | 158 | $this->add_sync_item( $post_id, $sync_item ); |
159 | 159 | } |
160 | 160 | |
161 | + /** |
|
162 | + * @param Jetpack_Sync_Item $sync_item |
|
163 | + */ |
|
161 | 164 | public function add_sync_item( $post_id, $sync_item ) { |
162 | 165 | if ( $this->has_sync_item( 'new' ) && ! $this->has_sync_item( $post_id ) ) { |
163 | 166 | $this->sync_items[ $post_id ] = $this->sync_items['new']; |
@@ -552,6 +555,9 @@ discard block |
||
552 | 555 | return isset( $importers[ $importer ] ) ? $importers[ $importer ][0] : 'Unknown Importer'; |
553 | 556 | } |
554 | 557 | |
558 | + /** |
|
559 | + * @param string $class_name |
|
560 | + */ |
|
555 | 561 | private function is_importer( $backtrace, $class_name ) { |
556 | 562 | foreach ( $backtrace as $trace ) { |
557 | 563 | if ( strpos( $trace, $class_name ) !== false ) { |