浏览代码

Catch more warnings

master
Adrian Short 11 年前
父节点
当前提交
a13f0fbb7b
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. +5
    -2
      includes/sites.php

+ 5
- 2
includes/sites.php 查看文件

@@ -24,17 +24,20 @@ if ( $query->have_posts() ) :
// party_affiliation // party_affiliation
// hyperlocal_group_id // hyperlocal_group_id


if ( isset( $meta['feed_url'] ) ) $feed_url = $meta['feed_url'][0];
if ( isset( $meta['area_covered'] ) ) $area_covered = html_entity_decode( $meta['area_covered'][0] );

$row = array( $row = array(
'title' => html_entity_decode( get_the_title() ), 'title' => html_entity_decode( get_the_title() ),
'permalink' => get_permalink(), 'permalink' => get_permalink(),
'url' => $meta['url'][0], 'url' => $meta['url'][0],
'feed_url' => $meta['feed_url'][0],
'feed_url' => $feed_url,
'date_created' => get_the_date("c"), 'date_created' => get_the_date("c"),
'date_modified' => get_the_modified_date("c"), 'date_modified' => get_the_modified_date("c"),
'lat' => (float)$meta['geo_latitude'][0], 'lat' => (float)$meta['geo_latitude'][0],
'lon' => (float)$meta['geo_longitude'][0], 'lon' => (float)$meta['geo_longitude'][0],
'radius_miles' => (float)$meta['distance_covered_miles'][0], 'radius_miles' => (float)$meta['distance_covered_miles'][0],
'area_covered' => html_entity_decode( $meta['area_covered'][0] ),
'area_covered' => $area_covered,
'body' => get_the_content(), 'body' => get_the_content(),
'country' => tax_first_name( get_the_ID(), 'countries' ), 'country' => tax_first_name( get_the_ID(), 'countries' ),
'council' => tax_first_name( get_the_ID(), 'councils' ), 'council' => tax_first_name( get_the_ID(), 'councils' ),


正在加载...
取消
保存