Changeset 1067529
- Timestamp:
- 01/14/2015 12:35:14 AM (11 years ago)
- Location:
- pocket-wp/trunk
- Files:
-
- 2 edited
-
pocket-wp.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pocket-wp/trunk/pocket-wp.php
r1067446 r1067529 4 4 * Plugin URI: http://ciaranmahoney.me/pocket-wp 5 5 * Description: Adds a shortcode and widget which allows you to display your pocket links in a WordPress page/post. 6 * Version: 0.4. 16 * Version: 0.4.2 7 7 * Author: Ciaran Mahoney 8 8 * Author URI: http://ciaranmahoney.me/ … … 29 29 // Set the version of this plugin 30 30 if( ! defined( 'POCKET_WP' ) ) { 31 define( 'POCKET_WP', '0.4. 1' );31 define( 'POCKET_WP', '0.4.2' ); 32 32 } 33 33 … … 366 366 367 367 // Check for tags 368 if ( $item['tags'] != ''){368 if (isset($item['tags'] )){ 369 369 $pwp_tags = $item['tags']; 370 370 } else { … … 373 373 374 374 array_push($pwp_links_output, 375 array($pwp_url, $pwp_title, $pwp_excerpt, $pwp_tags 376 ) 375 array($pwp_url, $pwp_title, $pwp_excerpt, $pwp_tags) 377 376 ); 378 377 } … … 409 408 // Display tag list if tag_list not set to no. 410 409 if(strtolower($tag_list) != 'no') { 411 $html[] = '<p class="pwp_tag_list">'; 412 foreach($item[3] as $tag) { 413 $html[] = '<span class="pwp_tags">' . $tag['tag'] . '</span>'; 414 } 415 $html[] ='</p>'; 416 } 410 if($item[3] != ""){ 411 $html[] = '<p class="pwp_tag_list">'; 412 foreach($item[3] as $tag) { 413 $html[] = '<span class="pwp_tags">' . $tag['tag'] . '</span>'; 414 } 415 $html[] ='</p>'; 416 417 } else { 418 $html[] = '<p class="pwp_tag_list"><span class="pwp_tags">untagged</span></p>'; 419 } 420 } else { 421 $html[] ='<p class="pwp_tag_list"></p>'; 422 } 417 423 } 418 424 -
pocket-wp/trunk/readme.txt
r1067446 r1067529 71 71 == Changelog == 72 72 73 = 0.4.2 = 74 * Improved the way plugin handles untagged posts. It now shows "untagged" in the tag list instead of throwing an error. Tag list can be turned off by using tag_list="no" 75 73 76 = 0.4.1 = 74 77 * Adding error checking on pocket feed retrieval.
Note: See TracChangeset
for help on using the changeset viewer.