Plugin Directory

Changeset 410863


Ignore:
Timestamp:
07/17/2011 01:59:09 AM (14 years ago)
Author:
mdbitz
Message:

Version 1.7.1 check for wp_get_current_user function

Location:
wordpress-amazon-associate/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-amazon-associate/trunk/WPAA.php

    r410533 r410863  
    205205     * @var String
    206206     */
    207     protected $version = '1.7.0';
     207    protected $version = '1.7.1';
    208208
    209209    /**
     
    211211     * @var String
    212212     */
    213     protected $last_updated = '07-15-2011';
     213    protected $last_updated = '07-16-2011';
    214214
    215215    /**
     
    605605        if( is_null( $locale ) || empty( $locale ) ) {
    606606            // Admin Localization
    607             if ( current_user_can('manage_options') ) {
    608                 if( $this->options['CVEnabled'] && $this->options['CVLocale'] != '' ) {
    609                     return $this->options['CVLocale'];
    610                 }
    611             }
     607            if( function_exists('wp_get_current_user') && function_exists('current_user_can') ) {
     608                if ( current_user_can('manage_options') ) {
     609                    if( $this->options['CVEnabled'] && $this->options['CVLocale'] != '' ) {
     610                        return $this->options['CVLocale'];
     611                    }
     612                }
     613            }
    612614            // Get Geo Locale if enabled
    613615            if(  $this->modules[self::MODULE_IP2NATION]->isInstalled() && $this->options['LocaleByGeoIP'] ) {
  • wordpress-amazon-associate/trunk/wordpress_amazon_associate.php

    r410637 r410863  
    55  Description: Quickly and eaily monetize your webiste through the integration of Amazon products and widgets tagged with your associate id.
    66  Author: MDBitz - Matthew John Denton
    7   Version: 1.7.0
     7  Version: 1.7.1
    88  Requires at least: 3.0.0
    99  Author URI: http://labs.mdbitz.com
Note: See TracChangeset for help on using the changeset viewer.