| @@ -9,10 +9,8 @@ | ||
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Implementation of e107 v1.x Forum converter. |
| 12 | 12 | * |
| 13 | - * phpcs:disable WordPress.DB.PreparedSQL.InterpolatedNotPrepared | |
| 14 | - * | |
| 15 | 13 | * @since 2.6.0 bbPress (r5352) |
| 16 | 14 | * |
| 17 | 15 | * @link Codex Docs https://codex.bbpress.org/import-forums/e107 |
| 18 | 16 | */ |
| @@ -18,8 +16,16 @@ | ||
| 18 | 16 | */ |
| 19 | 17 | class e107v1 extends BBP_Converter_Base { |
| 20 | 18 | |
| 21 | 19 | /** |
| 20 | + * Main Constructor | |
| 21 | + * | |
| 22 | + */ | |
| 23 | + public function __construct() { | |
| 24 | + parent::__construct(); | |
| 25 | + } | |
| 26 | + | |
| 27 | + /** | |
| 22 | 28 | * Sets up the field mappings |
| 23 | 29 | */ |
| 24 | 30 | public function setup_globals() { |
| 25 | 31 | |
| @@ -132,24 +138,24 @@ | ||
| 132 | 138 | // Forum dates. |
| 133 | 139 | $this->field_map[] = array( |
| 134 | 140 | 'to_type' => 'forum', |
| 135 | 141 | 'to_fieldname' => 'post_date', |
| 136 | - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore | |
| 142 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 137 | 143 | ); |
| 138 | 144 | $this->field_map[] = array( |
| 139 | 145 | 'to_type' => 'forum', |
| 140 | 146 | 'to_fieldname' => 'post_date_gmt', |
| 141 | - 'default' => gmdate( 'Y-m-d H:i:s' ) | |
| 147 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 142 | 148 | ); |
| 143 | 149 | $this->field_map[] = array( |
| 144 | 150 | 'to_type' => 'forum', |
| 145 | 151 | 'to_fieldname' => 'post_modified', |
| 146 | - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore | |
| 152 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 147 | 153 | ); |
| 148 | 154 | $this->field_map[] = array( |
| 149 | 155 | 'to_type' => 'forum', |
| 150 | 156 | 'to_fieldname' => 'post_modified_gmt', |
| 151 | - 'default' => gmdate( 'Y-m-d H:i:s' ) | |
| 157 | + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date | |
| 152 | 158 | ); |
| 153 | 159 | |
| 154 | 160 | /** Topic Section *****************************************************/ |
| 155 | 161 | |