Make WordPress Core

Ticket #10292: 10292.2.patch

File 10292.2.patch, 983 bytes (added by hakre, 15 years ago)

Common Engineering Style Variable Naming Variant

  • wp-includes/functions.php

     
    32223222/**
    32233223 * Gives a nicely formatted list of timezone strings // temporary! Not in final
    32243224 *
    3225  * @param string $selectedzone - which zone should be the selected one
     3225 * @param $selected_zone string Selected Zone
    32263226 *
    32273227 */
    32283228function wp_timezone_choice( $selected_zone ) {
     
    33203320                $structure[] = '<option ' . $selected . 'value="' . esc_attr( $value ) . '">' . esc_html( $display ) . "</option>";
    33213321               
    33223322                // Close continent optgroup
    3323                 if ( !empty( $zone['city'] ) && isset( $zonen[$key + 1] ) && $zonen[$key + 1]['continent'] !== $zone['continent'] ) {
     3323                if ( !empty( $zone['city'] ) && ( !isset($zonen[$key + 1]) || (isset( $zonen[$key + 1] ) && $zonen[$key + 1]['continent'] !== $zone['continent']) ) ) {
    33243324                        $structure[] = '</optgroup>';
    33253325                }
    33263326        }