[wp-trac] [WordPress Trac] #30380: get_transient doesn't check the return of get_option

WordPress Trac noreply at wordpress.org
Tue Jul 7 16:44:10 UTC 2015


#30380: get_transient doesn't check the return of get_option
---------------------------------+--------------------------
 Reporter:  jamesgol             |       Owner:  ocean90
     Type:  defect (bug)         |      Status:  closed
 Priority:  low                  |   Milestone:  4.3
Component:  Options, Meta APIs   |     Version:  2.8
 Severity:  normal               |  Resolution:  fixed
 Keywords:  has-patch has-tests  |     Focuses:  performance
---------------------------------+--------------------------
Changes (by ocean90):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33110"]:
 {{{
 #!CommitTicketReference repository="" revision="33110"
 Transients: If `get_option( $transient_timeout )` returns false, don't
 bother trying to delete the transient in `get_transient()`.

 props jamesgol, ericmann.
 fixes #30380.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30380#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list