[wp-trac] [WordPress Trac] #32073: Undefined offset: 0 warning in wp-includes\capabilities.php on line 1119

WordPress Trac noreply at wordpress.org
Thu Apr 23 20:46:56 UTC 2015


#32073: Undefined offset: 0 warning in wp-includes\capabilities.php on line 1119
--------------------------+------------------------------
 Reporter:  hubertnguyen  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.1.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dmchale):

 Sorry, you're completely correct. New patch uploaded with ternary logic, I
 think this is what you were suggesting originally

 {{{
 $post = ( isset( $args[0] ) ) ? get_post( $args[0] ) : get_post();
 }}}

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


More information about the wp-trac mailing list