[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:18:44 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 hubertnguyen):

 Right now, at \wp-includes\capabilities.php on line 1119, when args is
 empty, the current Post is being returned by getpost() and the rest would
 execute, so "break" would take a substantially different path.

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


More information about the wp-trac mailing list