@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | // This fixes function duplication during unit testing. |
| 15 | 15 | $path = dirname( __FILE__ ) . '/vendor/autoload.php'; |
| 16 | 16 | if ( file_exists( $path ) ) { |
| 17 | - require_once( $path ); |
|
| 17 | + require_once( $path ); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | add_action( 'save_post', array( $this->controller, 'export_post' ) ); |
| 155 | 155 | add_action( 'delete_post', array( $this->controller, 'delete_post' ) ); |
| 156 | 156 | add_action( 'wp_ajax_nopriv_wogh_push_request', array( $this->controller, 'pull_posts' ) ); |
| 157 | - add_action( 'wogh_export', array( $this->controller, 'export_all' ), 10, 2 ); |
|
| 157 | + add_action( 'wogh_export', array( $this->controller, 'export_all' ), 10, 2 ); |
|
| 158 | 158 | add_action( 'wogh_import', array( $this->controller, 'import_master' ), 10, 1 ); |
| 159 | 159 | add_filter( 'get_edit_post_link', array( $this, 'edit_post_link' ), 10, 3 ); |
| 160 | 160 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | - return $link; |
|
| 176 | + return $link; |
|
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | public function ignore_post_meta($meta) { |
@@ -415,9 +415,9 @@ discard block |
||
| 415 | 415 | /** |
| 416 | 416 | * Kicks of an import or export cronjob. |
| 417 | 417 | * |
| 418 | - * @param bool $force |
|
| 419 | - * @param string $type |
|
| 420 | - */ |
|
| 418 | + * @param bool $force |
|
| 419 | + * @param string $type |
|
| 420 | + */ |
|
| 421 | 421 | protected function start_cron( $type, $force = false ) { |
| 422 | 422 | update_option( '_wogh_' . $type . '_started', 'yes' ); |
| 423 | 423 | $user_id = get_current_user_id(); |