PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.1
6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 All 155 releases
← All changes | class/class-mainwp-demo-handle.php +0 -10 6.1.2 → 6.2.1 View file →
@@ -370,18 +370,8 @@
370 370 * @param index $websiteid website id.
371 371 */
372 372 private function add_demo_none_mainwp_action( $data_rows, $index, $websiteid ) {
373 373 global $wpdb;
374 - if ( ! is_array( $data_rows ) || empty( $websiteid ) ) {
375 - return;
376 - }
377 - foreach ( $data_rows as $row ) {
378 - if ( isset( $row['action_id'] ) && isset( $row['wpid'] ) && (int) $index === (int) $row['wpid'] ) {
379 - unset( $row['action_id'] );
380 - $row['wpid'] = $websiteid;
381 - $wpdb->insert( MainWP_DB::instance()->get_table_name( 'wp_actions' ), $row );
382 - }
383 - }
384 374 }
385 375
386 376 /**
387 377 * Method delete_data_demo()