WordPress.org

Plugin Directory

Changeset 633649


Ignore:
Timestamp:
12/03/12 21:02:58 (17 months ago)
Author:
mitchoyoshitaka
Message:

set default domain variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • yet-another-related-posts-plugin/trunk/class-core.php

    r633584 r633649  
    950950            'thumbnails_heading', 'thumbnails_default' ); 
    951951 
     952        if ( !isset($args['domain']) ) 
     953            $args['domain'] = 'website'; 
     954 
    952955        $r = array(); 
    953956        foreach ( $options as $option ) { 
    954             if ( isset($args['domain']) && 'rss' == $args['domain'] && 
     957            if ( 'rss' == $args['domain'] && 
    955958                 in_array( $option, $options_with_rss_variants ) ) 
    956959                $default = $this->get_option( 'rss_' . $option ); 
Note: See TracChangeset for help on using the changeset viewer.