lukaiser / pressbooks-lists

0 stars 0 forks source link

list creation not exclusive to published posts #4

Closed bdolor closed 10 years ago

bdolor commented 10 years ago

currently, lists are generated without regard to whether or not a post is in a published state.[post_status] => draft is treated the same as [post_status] => publish. Results in an inaccurate representation of a list based on what the user is publishing.

lukaiser commented 10 years ago

You are absolutely right! I totally forgot that. One question though. Is it by purpose that all the exports don't care about that either?

bdolor commented 10 years ago

The only export format that I'm aware of that pays no regard to any user setting, either 'published' or 'exports' is the WXR which relies on WP export_wp() — its intention is arguably to be a backup file.

Exports in PB will look at whether or not a post is marked for 'export'

screen shot 2014-09-10 at 4 25 48 pm

The web view, of course, cares about whether something is 'published'.

So, you are right in that you can export posts that aren't published, however, both the export value and the published value play a role in creating the lists, depending on which environment they are being generated in.

lukaiser commented 10 years ago

Yeah, that is what I was talking about. Web view: is sensitive to Published or not Exports: are sensitive to Export or not and not to the Published status