- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/importExport/inc/class.dc.import.wp.php
r3731 r3874 25 25 protected $post_count = 0; 26 26 27 protected $has_table = array();27 protected $has_table = []; 28 28 29 29 protected $vars; 30 protected $base_vars = array(30 protected $base_vars = [ 31 31 'db_host' => '', 32 32 'db_name' => '', … … 41 41 'post_formater' => 'xhtml', 42 42 'comment_formater' => 'xhtml', 43 'user_ids' => array(),44 'cat_ids' => array(),43 'user_ids' => [], 44 'cat_ids' => [], 45 45 'permalink_template' => 'p=%post_id%', 46 'permalink_tags' => array(46 'permalink_tags' => [ 47 47 '%year%', 48 48 '%monthnum%', … … 55 55 '%category%', 56 56 '%author%' 57 )58 );57 ] 58 ]; 59 59 protected $formaters; 60 60 … … 244 244 case 5: 245 245 $t = sprintf(__('Importing entries from %d to %d / %d'), $this->post_offset, 246 min( array($this->post_offset + $this->post_limit, $this->post_count)), $this->post_count);246 min([$this->post_offset + $this->post_limit, $this->post_count]), $this->post_count); 247 247 printf($this->imForm(5, $t), 248 form::hidden( array('offset'), $this->post_offset) .248 form::hidden(['offset'], $this->post_offset) . 249 249 $this->autoSubmit() 250 250 ); … … 271 271 '<h3 class="vertical-separator">' . $legend . '</h3>' . 272 272 '<div>' . $this->core->formNonce() . 273 form::hidden( array('do'), 'step' . $step) .273 form::hidden(['do'], 'step' . $step) . 274 274 '%s' . '</div>' . 275 275 '<p><input type="submit" value="' . $submit_value . '" /></p>' . … … 347 347 $cur->user_lang = $this->core->blog->settings->system->lang; 348 348 $cur->user_tz = $this->core->blog->settings->system->blog_timezone; 349 $permissions = array();349 $permissions = []; 350 350 351 351 $rs_meta = $db->select('SELECT * FROM ' . $prefix . 'usermeta WHERE user_id = ' . $rs->ID); … … 362 362 break; 363 363 case 'rich_editing': 364 $cur->user_options = new ArrayObject( array(364 $cur->user_options = new ArrayObject([ 365 365 'enable_wysiwyg' => $rs_meta->meta_value == 'true' ? true : false 366 ));366 ]); 367 367 break; 368 368 case 'wp_user_level': … … 587 587 } 588 588 589 $permalink_infos = array(589 $permalink_infos = [ 590 590 date('Y', strtotime($cur->post_dt)), 591 591 date('m', strtotime($cur->post_dt)), … … 598 598 $cur->cat_id, 599 599 $cur->user_id 600 );600 ]; 601 601 $cur->post_url = str_replace( 602 602 $this->vars['permalink_tags'], … … 727 727 protected function importPings($post_id, $new_post_id, $db) 728 728 { 729 $urls = array();730 $pings = array();729 $urls = []; 730 $pings = []; 731 731 732 732 $rs = $db->select(
Note: See TracChangeset
for help on using the changeset viewer.