Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 09:32:04 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for cast variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-update.php

    r5727 r5729  
    6767    function current_step() {
    6868        if ( isset( $_POST['step'] ) ) {
    69             $current_step = (int)$_POST['step'] + 1;
     69            $current_step = (int) $_POST['step'] + 1;
    7070        } else {
    7171            if ( !empty( $_COOKIE['bp-wizard-step'] ) ) {
     
    153153
    154154        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 );
    156156    }
    157157
     
    181181                    <ol>
    182182
    183                         <?php foreach( (array)$this->steps as $i => $name ) : ?>
     183                        <?php foreach( (array) $this->steps as $i => $name ) : ?>
    184184
    185185                            <li<?php if ( $this->current_step == $i ) : ?> class="current"<?php endif; ?>>
     
    558558        $bp_theme_installed      = false;
    559559
    560         foreach ( (array)$installed_plugins as $plugin ) {
     560        foreach ( (array) $installed_plugins as $plugin ) {
    561561            if ( 'BuddyPress Template Pack' == $plugin['Name'] ) {
    562562                $template_pack_installed = true;
     
    564564        }
    565565
    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 ) {
    568568                if ( ( 'BuddyPress Default' != $theme['Name'] ) && ( 'buddypress' == $tag ) ) {
    569569                    $bp_theme_installed = true;
     
    798798            }
    799799
    800             $blog_pages   = $this->setup_pages( (array)$_POST['bp_pages'] );
     800            $blog_pages   = $this->setup_pages( (array) $_POST['bp_pages'] );
    801801            bp_update_option( 'bp-pages', $blog_pages );
    802802
     
    10351035                // Check for the selected page
    10361036                if ( !empty( $_POST['bp-' . $key . '-page'] ) )
    1037                     $bp_pages[$key] = (int)$_POST['bp-' . $key . '-page'];
     1037                    $bp_pages[$key] = (int) $_POST['bp-' . $key . '-page'];
    10381038                else
    10391039                    $bp_pages[$key] = wp_insert_post( array( 'comment_status' => 'closed', 'ping_status' => 'closed', 'post_title' => ucwords( $key ), 'post_status' => 'publish', 'post_type' => 'page' ) );
     
    11281128
    11291129    // 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'] ) {
    11311131        bp_blogs_record_existing_blogs();
    11321132        bp_update_option( 'bp-blogs-first-install', 1 );
Note: See TracChangeset for help on using the changeset viewer.