Plugin Directory

Changeset 1005835


Ignore:
Timestamp:
10/11/2014 09:49:15 PM (11 years ago)
Author:
pathawks
Message:

Fix WP_DEBUG complaints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dirtysuds-postlist/trunk/posts.php

    r1005817 r1005835  
    5959
    6060// If the shortcode included the argument "query" let's parse that first, then merge it with our query defaults
    61     if ($atts['query']) {
     61    if ( in_array( 'query', $atts ) ) {
    6262        $query = wp_parse_args( $atts['query'], $query );
    6363    }
     
    7373    if ($posts) {
    7474        $embed .= '<ul';
    75         if ($atts['id'])
     75        if ( in_array( 'id', $atts ) )
    7676            $embed .= ' id="'.$atts['id'].'"';
    7777        $embed .= '>';
     
    8383// If a category has been set, and a "morelink" parameter specified, display a link to that category
    8484
    85         if ($query['cat'] && $atts['morelink']) {
     85        if ( in_array( 'cat', $atts ) && in_array( 'morelink', $atts ) ) {
    8686            $embed .= '<li><a href="'.get_category_link($query['cat']).'">'.$atts['morelink'].'</a></li>';
    8787        }
     
    9090// If a tag has been set, and a "morelink" parameter specified, display a link to that category
    9191
    92         if ($query['tag'] && $atts['morelink']) {
     92        if ( in_array( 'tag', $atts ) && in_array( 'morelink', $atts ) ) {
    9393            $embed .= '<li><a href="'.get_category_link($query['tag']).'">'.$atts['morelink'].'</a></li>';
    9494        }
Note: See TracChangeset for help on using the changeset viewer.