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/XenForo.php +13 -5 trunk → 2.6.19 View file →
@@ -16,8 +16,16 @@
16 16 */
17 17 class XenForo 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
@@ -100,9 +108,9 @@
100 108 'to_type' => 'forum',
101 109 'to_fieldname' => 'post_title'
102 110 );
103 111
104 - // Forum slug (Clean name to avoid conflicts)
112 + // Forum slug (Clean name to avoid confilcts)
105 113 // 'node_name' only has slug for explictly named forums
106 114 $this->field_map[] = array(
107 115 'from_tablename' => 'node',
108 116 'from_fieldname' => 'node_name',
@@ -153,24 +161,24 @@
153 161 // Forum dates.
154 162 $this->field_map[] = array(
155 163 'to_type' => 'forum',
156 164 'to_fieldname' => 'post_date',
157 - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore
165 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
158 166 );
159 167 $this->field_map[] = array(
160 168 'to_type' => 'forum',
161 169 'to_fieldname' => 'post_date_gmt',
162 - 'default' => gmdate( 'Y-m-d H:i:s' )
170 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
163 171 );
164 172 $this->field_map[] = array(
165 173 'to_type' => 'forum',
166 174 'to_fieldname' => 'post_modified',
167 - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore
175 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
168 176 );
169 177 $this->field_map[] = array(
170 178 'to_type' => 'forum',
171 179 'to_fieldname' => 'post_modified_gmt',
172 - 'default' => gmdate( 'Y-m-d H:i:s' )
180 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
173 181 );
174 182
175 183 /** Forum Subscriptions Section ***************************************/
176 184