Changeset 5729 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 02/11/2012 09:32:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r5727 r5729 67 67 function current_step() { 68 68 if ( isset( $_POST['step'] ) ) { 69 $current_step = (int) $_POST['step'] + 1;69 $current_step = (int) $_POST['step'] + 1; 70 70 } else { 71 71 if ( !empty( $_COOKIE['bp-wizard-step'] ) ) { … … 153 153 154 154 if ( 'finish' != $step_name ) 155 setcookie( 'bp-wizard-step', (int) $this->current_step, time() + 60 * 60 * 24, COOKIEPATH );155 setcookie( 'bp-wizard-step', (int) $this->current_step, time() + 60 * 60 * 24, COOKIEPATH ); 156 156 } 157 157 … … 181 181 <ol> 182 182 183 <?php foreach( (array) $this->steps as $i => $name ) : ?>183 <?php foreach( (array) $this->steps as $i => $name ) : ?> 184 184 185 185 <li<?php if ( $this->current_step == $i ) : ?> class="current"<?php endif; ?>> … … 558 558 $bp_theme_installed = false; 559 559 560 foreach ( (array) $installed_plugins as $plugin ) {560 foreach ( (array) $installed_plugins as $plugin ) { 561 561 if ( 'BuddyPress Template Pack' == $plugin['Name'] ) { 562 562 $template_pack_installed = true; … … 564 564 } 565 565 566 foreach ( (array) $installed_themes as $theme ) {567 foreach ( (array) $theme['Tags'] as $tag ) {566 foreach ( (array) $installed_themes as $theme ) { 567 foreach ( (array) $theme['Tags'] as $tag ) { 568 568 if ( ( 'BuddyPress Default' != $theme['Name'] ) && ( 'buddypress' == $tag ) ) { 569 569 $bp_theme_installed = true; … … 798 798 } 799 799 800 $blog_pages = $this->setup_pages( (array) $_POST['bp_pages'] );800 $blog_pages = $this->setup_pages( (array) $_POST['bp_pages'] ); 801 801 bp_update_option( 'bp-pages', $blog_pages ); 802 802 … … 1035 1035 // Check for the selected page 1036 1036 if ( !empty( $_POST['bp-' . $key . '-page'] ) ) 1037 $bp_pages[$key] = (int) $_POST['bp-' . $key . '-page'];1037 $bp_pages[$key] = (int) $_POST['bp-' . $key . '-page']; 1038 1038 else 1039 1039 $bp_pages[$key] = wp_insert_post( array( 'comment_status' => 'closed', 'ping_status' => 'closed', 'post_title' => ucwords( $key ), 'post_status' => 'publish', 'post_type' => 'page' ) ); … … 1128 1128 1129 1129 // On first installation - record all existing blogs in the system. 1130 if ( !(int) $bp->site_options['bp-blogs-first-install'] ) {1130 if ( !(int) $bp->site_options['bp-blogs-first-install'] ) { 1131 1131 bp_blogs_record_existing_blogs(); 1132 1132 bp_update_option( 'bp-blogs-first-install', 1 );
Note: See TracChangeset
for help on using the changeset viewer.