PluginProbe
bbPress / 2.6.19
bbPress v2.6.19
2.6.19 2.6.18 2.6.17 trunk 2.0 2.0-beta-1 2.0-beta-2b 2.0-beta-3 2.0-beta-3b 2.0-rc-2 2.0-rc-3 2.0-rc-4 2.0-rc-5 2.0.1 2.0.2 2.0.3 2.1 2.1-beta-1 2.1-rc1 2.1-rc2 2.1-rc3 2.1-rc4 2.1.1 2.1.2 2.1.3 All 74 releases
← All changes | includes/admin/converters/PHPWind.php +12 -5 trunk → 2.6.19 View file →
@@ -16,8 +16,16 @@
16 16 */
17 17 class PHPWind extends BBP_Converter_Base {
18 18
19 19 /**
20 + * Main Constructor
21 + *
22 + */
23 + public function __construct() {
24 + parent::__construct();
25 + }
26 +
27 + /**
20 28 * Sets up the field mappings
21 29 */
22 30 public function setup_globals() {
23 31
@@ -139,24 +147,24 @@
139 147 // Forum dates.
140 148 $this->field_map[] = array(
141 149 'to_type' => 'forum',
142 150 'to_fieldname' => 'post_date',
143 - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore
151 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
144 152 );
145 153 $this->field_map[] = array(
146 154 'to_type' => 'forum',
147 155 'to_fieldname' => 'post_date_gmt',
148 - 'default' => gmdate( 'Y-m-d H:i:s' )
156 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
149 157 );
150 158 $this->field_map[] = array(
151 159 'to_type' => 'forum',
152 160 'to_fieldname' => 'post_modified',
153 - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore
161 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
154 162 );
155 163 $this->field_map[] = array(
156 164 'to_type' => 'forum',
157 165 'to_fieldname' => 'post_modified_gmt',
158 - 'default' => gmdate( 'Y-m-d H:i:s' )
166 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
159 167 );
160 168
161 169 /** Topic Section *****************************************************/
162 170
@@ -421,9 +429,8 @@
421 429 'from_fieldname' => 'salt',
422 430 'to_type' => 'user',
423 431 'to_fieldname' => ''
424 432 );
425 -
426 433 // User password verify class (Stored in usermeta for verifying password)
427 434 $this->field_map[] = array(
428 435 'to_type' => 'user',
429 436 'to_fieldname' => '_bbp_class',