Changeset 1005835
- Timestamp:
- 10/11/2014 09:49:15 PM (11 years ago)
- File:
-
- 1 edited
-
dirtysuds-postlist/trunk/posts.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dirtysuds-postlist/trunk/posts.php
r1005817 r1005835 59 59 60 60 // 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 ) ) { 62 62 $query = wp_parse_args( $atts['query'], $query ); 63 63 } … … 73 73 if ($posts) { 74 74 $embed .= '<ul'; 75 if ( $atts['id'])75 if ( in_array( 'id', $atts ) ) 76 76 $embed .= ' id="'.$atts['id'].'"'; 77 77 $embed .= '>'; … … 83 83 // If a category has been set, and a "morelink" parameter specified, display a link to that category 84 84 85 if ( $query['cat'] && $atts['morelink']) {85 if ( in_array( 'cat', $atts ) && in_array( 'morelink', $atts ) ) { 86 86 $embed .= '<li><a href="'.get_category_link($query['cat']).'">'.$atts['morelink'].'</a></li>'; 87 87 } … … 90 90 // If a tag has been set, and a "morelink" parameter specified, display a link to that category 91 91 92 if ( $query['tag'] && $atts['morelink']) {92 if ( in_array( 'tag', $atts ) && in_array( 'morelink', $atts ) ) { 93 93 $embed .= '<li><a href="'.get_category_link($query['tag']).'">'.$atts['morelink'].'</a></li>'; 94 94 }
Note: See TracChangeset
for help on using the changeset viewer.