[wp-trac] [WordPress Trac] #40495: Check objects before getting it's value
WordPress Trac
noreply at wordpress.org
Tue Jun 6 07:31:25 UTC 2017
#40495: Check objects before getting it's value
-------------------------------+------------------------------
Reporter: khushbu.padalia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by dd32):
* keywords: => reporter-feedback
Comment:
Hi @khushbu.padalia and welcome to Trac.
Sorry it took so long for someone to get back to you.
Can you clarify how you're running into this? Are you using your own
upload script, or are you running the upload through one of WordPress's
upload files?
`$wp_rewrite` should be setup and ready before the point at which uploads
are processed, if you're processing them yourself I'd suggest ensuring
you're waiting until at least `init` or `admin_init` to process them.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40495#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list