Plugin Directory

Changeset 130776


Ignore:
Timestamp:
06/30/2009 12:35:42 PM (16 years ago)
Author:
sambauers
Message:

bbpress-integration: Version 1.0 fix warnings when there are no options set

Location:
bbpress-integration/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bbpress-integration/trunk/bbpress-integration.php

    r127291 r130776  
    44Plugin URI: http://wordpress.org/extend/plugins/bbpress-integration/
    55Description: Provides single sign on login with a bbPress installation.
    6 Version: 1.0-rc-3
     6Version: 1.0
    77Author: <a href="http://blogwaffe.com/">Michael Adams</a> and <a href="http://unlettered.org">Sam Bauers</a>
    88Author URI:
     
    200200    }
    201201
    202     extract( bbpress_integration_get_cookie_domain_and_path() );
     202    if ( !$cookiedomain_and_path = bbpress_integration_get_cookie_domain_and_path() ) {
     203        return false;
     204    }
     205    extract( $cookiedomain_and_path );
    203206
    204207    $domain = $cookiedomain;
     
    415418<?php
    416419    if ( !empty( $uri ) ) {
    417         extract( bbpress_integration_get_cookie_domain_and_path() );
    418 
    419420        $wp_settings = '';
    420         if ( $cookiehash ) {
    421             $wp_settings .= 'define( \'COOKIEHASH\', \'' . $cookiehash . '\' );' . "\n";
    422         }
    423         if ( $cookiedomain ) {
    424             $wp_settings .= 'define( \'COOKIE_DOMAIN\', \'' . $cookiedomain . '\' );' . "\n";
    425         }
    426         if ( $sitecookiepath ) {
    427             $wp_settings .= 'define( \'SITECOOKIEPATH\', \'' . $sitecookiepath . '\' );' . "\n";
    428         }
    429         if ( $admincookiepath ) {
    430             $wp_settings .= 'define( \'ADMIN_COOKIE_PATH\', \'' . $admincookiepath . '\' );' . "\n";
    431         }
    432         $wp_settings .= 'define( \'COOKIEPATH\', \'' . $cookiepath . '\' );';
     421
     422        if ( $cookiedomain_and_path = bbpress_integration_get_cookie_domain_and_path() ) {
     423            extract( $cookiedomain_and_path );
     424            if ( $cookiehash ) {
     425                $wp_settings .= 'define( \'COOKIEHASH\', \'' . $cookiehash . '\' );' . "\n";
     426            }
     427            if ( $cookiedomain ) {
     428                $wp_settings .= 'define( \'COOKIE_DOMAIN\', \'' . $cookiedomain . '\' );' . "\n";
     429            }
     430            if ( $sitecookiepath ) {
     431                $wp_settings .= 'define( \'SITECOOKIEPATH\', \'' . $sitecookiepath . '\' );' . "\n";
     432            }
     433            if ( $admincookiepath ) {
     434                $wp_settings .= 'define( \'ADMIN_COOKIE_PATH\', \'' . $admincookiepath . '\' );' . "\n";
     435            }
     436            $wp_settings .= 'define( \'COOKIEPATH\', \'' . $cookiepath . '\' );';
     437        }
    433438    } else {
    434439        $wp_settings = __( '// Options must be set above for manual cookie settings to appear here.', 'bbpress_integration' );
  • bbpress-integration/trunk/readme.txt

    r127291 r130776  
    44Requires at least: 2.7
    55Tested up to: 2.8
    6 Stable tag: 1.0-rc-3
     6Stable tag: 1.0
    77
    88Provides single sign on login with a bbPress installation.
     
    5454== License ==
    5555
    56 bbPress Live version 1.0-rc-3<br />
     56bbPress Live version 1.0<br />
    5757Copyright (C) 2007 Michael Adams (http://blogwaffe.com/)<br />
    5858Copyright (C) 2009 Sam Bauers (http://unlettered.org/)
     
    7878* 1.0-rc-3 :
    7979  <br />Better support and instructions for WordPress 2.7 and WPMU
     80* 1.0 :
     81  <br />Fix a potential warning when no options are set
Note: See TracChangeset for help on using the changeset viewer.