Changeset 1106
- Timestamp:
- 01/08/2015 06:53:48 PM (10 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php
r1105 r1106 469 469 * so we have to request more tweets than we actually want and then cut it down here. 470 470 */ 471 if ( $tweets['tweets']) {471 if ( is_array( $tweets['tweets'] ) ) { 472 472 $tweets['tweets'] = array_slice( $tweets['tweets'], 0, 3 ); 473 473 $tweets['tweets'] = self::sanitize_format_tweets( $tweets['tweets'] ); -
sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/js/central.js
r1105 r1106 77 77 78 78 // Check for success 79 if ( response.hasOwnProperty( 'data' ) && response.data.hasOwnProperty( 'tweets' ) ) {79 if ( response.hasOwnProperty( 'data' ) && response.data.hasOwnProperty( 'tweets' ) && response.data.tweets === Array ) { 80 80 tweets = response.data.tweets; 81 81 } else {
Note: See TracChangeset
for help on using the changeset viewer.