Correct return value for WP_Filesystem_Base::gethchmod(). props bananastalktome. fixes #23121.

git-svn-id: http://core.svn.wordpress.org/trunk@23349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Add missing inline descriptions.

props momo360modena, aaronholbrook.
see #20494, fixes #23304.

git-svn-id: http://core.svn.wordpress.org/trunk@23350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Make sure the post exists before checking its ID. fixes #23026.

git-svn-id: http://core.svn.wordpress.org/trunk@23351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Consistently use a helper function instead of directly printing the disabled attribute.

Remove an erroneous esc_attr() call.

fixes #23194.

git-svn-id: http://core.svn.wordpress.org/trunk@23352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sanitize post_author and comment_count as integer fields. props GeertDD. fixes #22324.

git-svn-id: http://core.svn.wordpress.org/trunk@23353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
First pass as an export API
Allow WP_WXR_Export to be init without arguments

It assumes we want everything in this case.
Rename export() to export_using_writer_class()

export() was too generic and suggested many
people should use it.
Remove XML from writer's names

Writing XML isn't part of their core responsibilities,
so we don't need to clutter their names.
Filter out empty WHERE clauses

If any of the *_where() methods returns an empty
condition it breaks the SQL query, because we
add en extra AND for it.
Make the defaults array more readable

Split into multiple lines, since we will be
adding more to it.
Rename post_status to status

We don't need to match the post member var and
introduce extra specificity.
Filter by author
Move public methods on top and order them sanely

Place the most used ones on top.
Add start/end date filtering
Get rid if 'all' => true

It's superseded by creating the object without any
arguments.
Add attachment of custom post types

Otherwise, if we choose to query a CPT, they get
filtered.

See http://core.trac.wordpress.org/ticket/17379
Switch *_where() methods to modify $this->wheres

Some of them need to touch both $wheres and $joins
and having them return values gets unwieldy.
Add category filtering
Add authors listing