Changeset 28633
- Timestamp:
- 05/30/2014 05:57:51 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php
r28497 r28633 245 245 246 246 switch ( $status ) { 247 default:248 case 'install':249 $actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __( 'Install Now' ) . '</a>';250 break;251 247 case 'update_available': 252 248 $actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ) . '">' . __( 'Update' ) . '</a>'; … … 255 251 case 'latest_installed': 256 252 $actions[] = '<span class="install-now" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) . '</span>'; 253 break; 254 case 'install': 255 default: 256 $actions[] = '<a class="install-now" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Install %s' ), $name ) ) . '">' . __( 'Install Now' ) . '</a>'; 257 257 break; 258 258 } … … 368 368 <div class="install-theme-info"><?php 369 369 switch ( $status ) { 370 default:371 case 'install':372 echo '<a class="theme-install button-primary" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '">' . __( 'Install' ) . '</a>';373 break;374 370 case 'update_available': 375 371 echo '<a class="theme-install button-primary" href="' . esc_url( wp_nonce_url( $update_url, 'upgrade-theme_' . $theme->slug ) ) . '" title="' . esc_attr( sprintf( __( 'Update to version %s' ), $theme->version ) ) . '">' . __( 'Update' ) . '</a>'; … … 378 374 case 'latest_installed': 379 375 echo '<span class="theme-install" title="' . esc_attr__( 'This theme is already installed and is up to date' ) . '">' . _x( 'Installed', 'theme' ) . '</span>'; 376 break; 377 case 'install': 378 default: 379 echo '<a class="theme-install button-primary" href="' . esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ) . '">' . __( 'Install' ) . '</a>'; 380 380 break; 381 381 } ?> -
trunk/src/wp-admin/includes/dashboard.php
r28592 r28633 602 602 <?php 603 603 else : 604 switch ( $comment->comment_type ) :605 case 'pingback' :606 $type = __( 'Pingback' );607 break;608 case 'trackback' :609 $type = __( 'Trackback' );610 break;611 default :612 $type = ucwords( $comment->comment_type );613 endswitch;604 switch ( $comment->comment_type ) { 605 case 'pingback' : 606 $type = __( 'Pingback' ); 607 break; 608 case 'trackback' : 609 $type = __( 'Trackback' ); 610 break; 611 default : 612 $type = ucwords( $comment->comment_type ); 613 } 614 614 $type = esc_html( $type ); 615 615 ?> -
trunk/src/wp-admin/includes/schema.php
r28260 r28633 303 303 $queries = $ms_global_tables; 304 304 break; 305 case 'all' : 305 306 default: 306 case 'all' :307 307 $queries = $global_tables . $blog_tables; 308 308 if ( $is_multisite ) -
trunk/src/wp-admin/media.php
r28500 r28633 91 91 $class = ''; 92 92 if ( isset($_GET['message']) ) { 93 switch ( $_GET['message'] ) :94 case 'updated' :95 $message = __('Media attachment updated.');96 $class = 'updated';97 break;98 endswitch;93 switch ( $_GET['message'] ) { 94 case 'updated' : 95 $message = __('Media attachment updated.'); 96 $class = 'updated'; 97 break; 98 } 99 99 } 100 100 if ( $message ) -
trunk/src/wp-includes/category-template.php
r28572 r28633 786 786 } 787 787 788 switch ( $args['format'] ) :789 case 'array' :790 $return =& $a;791 break;792 case 'list' :793 $return = "<ul class='wp-tag-cloud'>\n\t<li>";794 $return .= join( "</li>\n\t<li>", $a );795 $return .= "</li>\n</ul>\n";796 break;797 default :798 $return = join( $args['separator'], $a );799 break;800 endswitch;788 switch ( $args['format'] ) { 789 case 'array' : 790 $return =& $a; 791 break; 792 case 'list' : 793 $return = "<ul class='wp-tag-cloud'>\n\t<li>"; 794 $return .= join( "</li>\n\t<li>", $a ); 795 $return .= "</li>\n</ul>\n"; 796 break; 797 default : 798 $return = join( $args['separator'], $a ); 799 break; 800 } 801 801 802 802 if ( $args['filter'] ) { -
trunk/src/wp-includes/functions.php
r28609 r28633 2302 2302 } 2303 2303 $errors = $message->get_error_messages(); 2304 switch ( count( $errors ) ) :2304 switch ( count( $errors ) ) { 2305 2305 case 0 : 2306 2306 $message = ''; … … 2312 2312 $message = "<ul>\n\t\t<li>" . join( "</li>\n\t\t<li>", $errors ) . "</li>\n\t</ul>"; 2313 2313 break; 2314 endswitch;2314 } 2315 2315 } elseif ( is_string( $message ) ) { 2316 2316 $message = "<p>$message</p>";
Note: See TracChangeset
for help on using the changeset viewer.