Make sure end( gets a variable to work around strict notices
This commit is contained in:
parent
b2b64b9d06
commit
930cd6125f
|
@ -60,8 +60,10 @@ class WC_Settings_Page {
|
|||
|
||||
echo '<ul class="subsubsub">';
|
||||
|
||||
$array_keys = array_keys( $sections );
|
||||
|
||||
foreach ( $sections as $id => $label )
|
||||
echo '<li><a href="' . admin_url( 'admin.php?page=woocommerce_settings&tab=' . $this->id . '§ion=' . sanitize_title( $id ) ) . '" class="' . ( $current_section == $id ? 'current' : '' ) . '">' . $label . '</a> ' . ( end( array_keys( $sections ) ) == $id ? '' : '|' ) . ' </li>';
|
||||
echo '<li><a href="' . admin_url( 'admin.php?page=woocommerce_settings&tab=' . $this->id . '§ion=' . sanitize_title( $id ) ) . '" class="' . ( $current_section == $id ? 'current' : '' ) . '">' . $label . '</a> ' . ( end( $array_keys ) == $id ? '' : '|' ) . ' </li>';
|
||||
|
||||
echo '</ul><br class="clear" />';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue