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/bbPress1.php +13 -5 trunk → 2.6.19 View file →
@@ -16,8 +16,16 @@
16 16 */
17 17 class bbPress1 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
@@ -84,9 +92,9 @@
84 92 'to_type' => 'forum',
85 93 'to_fieldname' => 'post_title'
86 94 );
87 95
88 - // Forum slug (Clean name to avoid conflicts)
96 + // Forum slug (Clean name to avoid confilcts)
89 97 $this->field_map[] = array(
90 98 'from_tablename' => 'forums',
91 99 'from_fieldname' => 'forum_slug',
92 100 'to_type' => 'forum',
@@ -133,24 +141,24 @@
133 141 // Forum dates.
134 142 $this->field_map[] = array(
135 143 'to_type' => 'forum',
136 144 'to_fieldname' => 'post_date',
137 - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore
145 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
138 146 );
139 147 $this->field_map[] = array(
140 148 'to_type' => 'forum',
141 149 'to_fieldname' => 'post_date_gmt',
142 - 'default' => gmdate( 'Y-m-d H:i:s' )
150 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
143 151 );
144 152 $this->field_map[] = array(
145 153 'to_type' => 'forum',
146 154 'to_fieldname' => 'post_modified',
147 - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore
155 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
148 156 );
149 157 $this->field_map[] = array(
150 158 'to_type' => 'forum',
151 159 'to_fieldname' => 'post_modified_gmt',
152 - 'default' => gmdate( 'Y-m-d H:i:s' )
160 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
153 161 );
154 162
155 163 /** Forum Subscriptions Section ***************************************/
156 164