Skip to content

Commit

Permalink
Fixes what json key to check for
Browse files Browse the repository at this point in the history
  • Loading branch information
erwstout committed Apr 3, 2017
1 parent 1fa6fc2 commit cb8a48a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions assets/js/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,9 @@ var staffgrid = function(){


// Get Thumbnail thats cropped, if it doesn't exist fall back to full size as a last resort
if( staff_post._embedded['wp:featuredmedia'] && staff_post._embedded['wp:featuredmedia'][0].media_details.sizes['profile-image'] ){
if( staff_post._embedded && staff_post._embedded['wp:featuredmedia'][0].media_details.sizes['profile-image'] ){
featured_img = staff_post._embedded['wp:featuredmedia'][0].media_details.sizes['profile-image'].source_url;
} else if( staff_post._embedded['wp:featuredmedia'] ) {
} else if( staff_post._embedded ) {
featured_img = staff_post._embedded['wp:featuredmedia'][0].media_details.sizes.full.source_url;
} else{
featured_img = '';
Expand Down
4 changes: 2 additions & 2 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ var staffgrid = function(){


// Get Thumbnail thats cropped, if it doesn't exist fall back to full size as a last resort
if( staff_post._embedded['wp:featuredmedia'] && staff_post._embedded['wp:featuredmedia'][0].media_details.sizes['profile-image'] ){
if( staff_post._embedded && staff_post._embedded['wp:featuredmedia'][0].media_details.sizes['profile-image'] ){
featured_img = staff_post._embedded['wp:featuredmedia'][0].media_details.sizes['profile-image'].source_url;
} else if( staff_post._embedded['wp:featuredmedia'] ) {
} else if( staff_post._embedded ) {
featured_img = staff_post._embedded['wp:featuredmedia'][0].media_details.sizes.full.source_url;
} else{
featured_img = '';
Expand Down
8 changes: 4 additions & 4 deletions assets/js/theme.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('PRELUDE_VERSION', '1.0.1');
define('PRELUDE_VERSION', '1.0.2');

if ( !function_exists( 'prelude_features' ) ) {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oneil",
"version": "1.0.1",
"version": "1.0.2",
"description": "A custom WordPress theme for O'neil Printing",
"main": "index.php",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Theme URI:
Author: Factor1
Author URI: http://factor1studios.com
Description: A custom WordPress theme for O'Neil Printing designed by Rule29 and developed by Factor1.
Version: 1.0.1
Version: 1.0.2
*/

0 comments on commit cb8a48a

Please sign in to comment.