#3188 closed defect (bug) (fixed)
Shouldn't use deprecated functions start_wp
Reported by: | foolswisdom | Owned by: | westi |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
Continuing ticket:3186 by Nazgul for remaining deprecated function start_wp
Here's a list of the functions (and between brackets the files that use them):
start_wp (wp-atom.php, wp-rss.php, wp-rss2.php, wp-admin/edit.php, wp-admin/export.php, wp-content/themes/clasdic/comment-popup.php and wp-content/themes/default/comment-popup.php)
Attachments (2)
Change History (15)
#2
@
18 years ago
- Keywords has-patch added
Attached patch deprecates start_wp in all the listed places.
Also extends WP_Query to support post_type = all so as to enable using it for the exporter query.
Please test and feedback
#4
follow-up:
↓ 5
@
18 years ago
Didn't include the export changes since the exporter needs to export posts of any status and not just publish.
#5
in reply to:
↑ 4
@
18 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Replying to ryan:
Didn't include the export changes since the exporter needs to export posts of any status and not just publish.
I tried to fix this with the new query var for post_type=all I guess i missed the post_status check as well.
I'll try and put up a patch to fix that one last occurrence by extending wp query to give us a way of getting every post/page back whatever the type /status
#7
@
18 years ago
- Keywords has-patch added
Attached patch fixes the exporter to use the API and kills off start_wp for good
#8
follow-up:
↓ 9
@
18 years ago
Wouldn't this allow someone to put export in the query string on someone's blog or RSS feed and grab the whole thing?
#9
in reply to:
↑ 8
@
18 years ago
Replying to matt:
Wouldn't this allow someone to put export in the query string on someone's blog or RSS feed and grab the whole thing?
Well post_type is a private query var (http://trac.wordpress.org/browser/trunk/wp-includes/classes.php#L6).
I'm not entirely sure how that affects where or not it is allowed in the url without spending more time reading the code.
However it probably should.
I'm working on this.