Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $wp_filter, $merged_filters, $wp_current_filter;
- $save_wp_filter = $wp_filter;
- $save_merged_filters = $merged_filters;
- $save_wp_current_filter = $wp_current_filter;
- $placemark = array(
- 'id' => $postID,
- 'title' => apply_filters( 'the_title', $pp->post_title ),
- 'latitude' => get_post_meta( $postID, self::PREFIX . 'latitude', true ),
- 'longitude' => get_post_meta( $postID, self::PREFIX . 'longitude', true ),
- 'details' => apply_filters( 'the_content', $pp->post_content ), // note: don't use setup_postdata/get_the_content() in this instance -- http://lists.automattic.com/pipermail/wp-hackers/2013-January/045053.html
- 'categories' => $categories,
- 'icon' => is_array( $icon ) ? $icon[ 0 ] : $defaultIcon,
- 'zIndex' => get_post_meta( $postID, self::PREFIX . 'zIndex', true )
- );
- $wp_filter = $save_wp_filter;
- $merged_filters = $save_merged_filters;
- $wp_current_filter = $save_wp_current_filter;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement