[wp-trac] [WordPress Trac] #19951: incorrect use of self and $this simultaneously

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 3 01:20:34 UTC 2012


#19951: incorrect use of self and $this simultaneously
----------------------------+-----------------------------
 Reporter:  diddledan       |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.3.1
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 the following code around line 704 of wp-admin/includes/screen.php appears
 to be incorrect, using both self:: and $this-> simultaneously. This
 shouldn't work afaict, and doesn't when using the stricter (than zend)
 hiphop-php runtime.

 {{{
 <?php if ( $has_sidebar ) : ?>
 <div class="contextual-help-sidebar">
         <?php echo self::$this->_help_sidebar; ?>
 </div>
 <?php endif; ?>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19951>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list