Closed GoogleCodeExporter closed 9 years ago
The problem is WP and its over-reliance on global variables. It usually
defaults to the current page ID, which is not what's expected.
Original comment by ever...@fireproofsocks.com
on 8 May 2013 at 1:25
I've updated the get_post filter so it responds with a false on empty input.
Committed revision 713101. Will be in 0.9.7.4.
However, you should put some tests into your code, e.g.
if ($refPage = get_custom_field('refPage:get_post')) {
if ($refPage['page_images']) {
$images = CCTM::filter( $refPage['page_images'], 'get_post');
}
}
Some filters do in fact operate on a blank value, e.g. the "default" output
filter or the "help" filter.
Original comment by ever...@fireproofsocks.com
on 14 May 2013 at 8:12
Original issue reported on code.google.com by
pe...@twobytwo.co.uk
on 8 May 2013 at 10:43