WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #41057, comment 78


Ignore:
Timestamp:
11/08/2017 05:51:51 PM (20 months ago)
Author:
Otto42
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41057, comment 78

    initial v1  
    11Another error in line 509. Noticed because it's breaking the plugin directory screens on WordPress.org.
    22
    3 ```
     3{{{
    44foreach ( $attributes as $attribute ) {
    55   if ( ! empty( $node->meta[ $attribute ] ) ) {
     
    77   }
    88}
    9 ```
     9}}}
    1010
    1111Note the mismatched quoting on the HTML attribute. It starts with a single quote, but closes with a double quote.
     
    1313Change the echo to this to fix:
    1414
    15 ```
     15{{{
    1616      echo " $attribute='" . esc_attr( $node->meta[ $attribute ] ) . "'";
    17 ```
     17}}}
    1818