[wp-trac] [WordPress Trac] #13354: wp_insert_post() not working correctly
WordPress Trac
wp-trac at lists.automattic.com
Mon Oct 25 16:23:52 UTC 2010
#13354: wp_insert_post() not working correctly
-----------------------------+----------------------------------------------
Reporter: christian_gnoth | Owner:
Type: defect (bug) | Status: reopened
Priority: high | Milestone:
Component: General | Version: 3.0.1
Severity: major | Resolution:
Keywords: 2nd-opinion |
-----------------------------+----------------------------------------------
Comment(by duck_):
Replying to [comment:10 christian_gnoth]:
>
> {{{
> add_action( 'admin_head', 'create_gangsta_page' );
> $content = <<<EOD
> <snip>
`$content` is not in the scope of `create_gangsta_page` so that's probably
why it's not working. Either define `$content` in the function or use the
global keyword.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13354#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list