logic made clearer, intendation fixed and comparision done against undefined since that is the value date gets when the tags post_date_gmt and post_date are missing
logic made clearer, intendation fixed and comparision done against undefined since that is the value date gets when the tags post_date_gmt and post_date are missing

jonhoo/wp2ghost