@@ -148,6 +148,9 @@ discard block |
||
148 | 148 | $this->add_sync_item( $post_id, $sync_item ); |
149 | 149 | } |
150 | 150 | |
151 | + /** |
|
152 | + * @param Jetpack_Sync_Item $sync_item |
|
153 | + */ |
|
151 | 154 | public function add_sync_item( $post_id, $sync_item ) { |
152 | 155 | if ( $this->has_sync_item( $post_id ) ) { |
153 | 156 | $this->sync_items[ $post_id ]->add_sync_item( $sync_item ); |
@@ -543,6 +546,9 @@ discard block |
||
543 | 546 | return isset( $importers[ $importer ] ) ? $importers[ $importer ][0] : 'Unknown Importer'; |
544 | 547 | } |
545 | 548 | |
549 | + /** |
|
550 | + * @param string $class_name |
|
551 | + */ |
|
546 | 552 | private function is_importer( $backtrace, $class_name ) { |
547 | 553 | foreach ( $backtrace as $trace ) { |
548 | 554 | if ( strpos( $trace, $class_name ) !== false ) { |