[wp-trac] [WordPress Trac] #14783: Incorrect/missing PHPDoc
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 4 20:57:30 UTC 2010
#14783: Incorrect/missing PHPDoc
-------------------------+--------------------------------------------------
Reporter: duck_ | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: Inline Docs | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by filosofo):
Replying to [comment:1 duck_]:
> This strikes me (also discussed briefly with nacin) as very odd since
leaving out $postarr makes wp_insert_post useless and it will always
return 0.
In `wp-admin/includes/post.php`:
{{{
543 $post_ID = wp_insert_post( $_POST );
}}}
There is no check within that function (`wp_write_post()`) that the
`$_POST` array is populated.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14783#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list