[Plugin: Front-end Editor]FEE – WP 2.9 bug: $post wrong in wp_head
-
FEE 1.5.1 plus WP2.9 (but not 2.8.6) changes the value of $post in a curious way: Put this in a tiny plugin:
function test_wp_head() { global $post; print_r($post); } add_action('wp_head', 'test_wp_head');
Activate it and FEE. This prints $post at the top of the page, and shows that with FEE active, $post is just the post id (an integer), not the post array. With FEE not active, the correct full post structure is printed at the top of the page.
Interestingly, at the action ‘get_sidebar’, the value is correct.
This came to my attention because it prevents flexipages from displaying trees (because now $post doesn’t contain parent info, etc). The bug seems to be solely an effect of the interaction between WP2.9 and FEE — specifically, it is not due in any way to flexipages. (My workaround in flexipages was to use get_sidebar.)
- The topic ‘[Plugin: Front-end Editor]FEE – WP 2.9 bug: $post wrong in wp_head’ is closed to new replies.