Changeset 1454829
- Timestamp:
- 07/14/2016 04:01:52 PM (10 years ago)
- Location:
- night-carousel-plus/trunk
- Files:
-
- 2 edited
-
README.md (modified) (2 diffs)
-
src/ncp-shortcodes.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
night-carousel-plus/trunk/README.md
r1454787 r1454829 1 # Night-Carousel-Plus v1.1.31 # Night-Carousel-Plus 2 2 ### A WordPress Plugin using the Owl Carousel jQuery Plugin 3 3 #### By Matt Vona … … 36 36 - Feel free to submit ideas! 37 37 38 #### v1.1.3 38 #### v1.1.4 39 - Fixed bug that displayed PHP notice when carousel did not exist. 40 41 v1.1.3 39 42 - Changed name for WordPress Plugin manager 40 43 - updated bug that showed notice if the carousel did not exist -
night-carousel-plus/trunk/src/ncp-shortcodes.php
r1454764 r1454829 13 13 $atts = shortcode_atts( 14 14 array( 15 'carousel' => '',15 'carousel' => null, 16 16 'limit' => '-1', 17 17 ), … … 21 21 22 22 //* Set Term if the carousel flag is set 23 if ($carousel != '') { 24 if (isset($carousel->term_id)) { 25 $termID = get_term_by('name', $carousel, 'ncp-carousel')->term_id; 23 if ($carousel != null) { 24 $termID = get_term_by('name', $carousel, 'ncp-carousel'); 25 if (!isset($termID->term_id)) { 26 return "The carousel does not exist."; 26 27 } 27 } 28 } 28 29 29 30 //* Hook the javascript for the slider … … 56 57 57 58 //* Run the custom filter function 58 echo ncp_filter(get_option( "taxonomy_$termID " )['ncp_custom_options']['slider_template'], $ncpSlideQuery->post);59 echo ncp_filter(get_option( "taxonomy_$termID->term_id" )['ncp_custom_options']['slider_template'], $ncpSlideQuery->post); 59 60 $i++; 60 61 } … … 65 66 } else { 66 67 // no posts found 67 echo " No slides found in this carousel.";68 echo "The carousel does not exist or no slides were found."; 68 69 } 69 70
Note: See TracChangeset
for help on using the changeset viewer.