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/Drupal7.php +11 -4 trunk → 2.6.19 View file →
@@ -16,8 +16,15 @@
16 16 */
17 17 class Drupal7 extends BBP_Converter_Base {
18 18
19 19 /**
20 + * Main Constructor
21 + */
22 + public function __construct() {
23 + parent::__construct();
24 + }
25 +
26 + /**
20 27 * Sets up the field mappings
21 28 */
22 29 public function setup_globals() {
23 30
@@ -94,24 +101,24 @@
94 101 // Forum dates.
95 102 $this->field_map[] = array(
96 103 'to_type' => 'forum',
97 104 'to_fieldname' => 'post_date',
98 - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore
105 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
99 106 );
100 107 $this->field_map[] = array(
101 108 'to_type' => 'forum',
102 109 'to_fieldname' => 'post_date_gmt',
103 - 'default' => gmdate( 'Y-m-d H:i:s' )
110 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
104 111 );
105 112 $this->field_map[] = array(
106 113 'to_type' => 'forum',
107 114 'to_fieldname' => 'post_modified',
108 - 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore
115 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
109 116 );
110 117 $this->field_map[] = array(
111 118 'to_type' => 'forum',
112 119 'to_fieldname' => 'post_modified_gmt',
113 - 'default' => gmdate( 'Y-m-d H:i:s' )
120 + 'default' => date( 'Y-m-d H:i:s' ) // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
114 121 );
115 122
116 123 /** Topic Section *****************************************************/
117 124