Ticket #35051: 35051.patch
File 35051.patch, 3.9 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/class-wp-ms-themes-list-table.php
399 399 400 400 if ( ! $allowed ) { 401 401 if ( ! $theme->errors() ) { 402 $actions['enable'] = '<a href="' . esc_url( wp_nonce_url($url . 'action=enable&theme=' . $theme_key . '&paged=' . $page . '&s=' . $s, 'enable-theme_' . $stylesheet ) ) . '" title="' . esc_attr__('Enable this theme') . '" class="edit">' . ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) . '</a>'; 402 /* translators: %s: theme name */ 403 $actions['enable'] = '<a href="' . esc_url( wp_nonce_url($url . 'action=enable&theme=' . $theme_key . '&paged=' . $page . 404 '&s=' . $s, 'enable-theme_' . $stylesheet ) ) . '" class="edit" aria-label="' . 405 esc_attr( sprintf( __( 'Network Enable %s' ), $theme->get( 'Name' ) ) ) . '">' . 406 ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) . '</a>'; 403 407 } 404 408 } else { 405 $actions['disable'] = '<a href="' . esc_url( wp_nonce_url($url . 'action=disable&theme=' . $theme_key . '&paged=' . $page . '&s=' . $s, 'disable-theme_' . $stylesheet ) ) . '" title="' . esc_attr__('Disable this theme') . '">' . ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) . '</a>'; 409 /* translators: %s: theme name */ 410 $actions['disable'] = '<a href="' . esc_url( wp_nonce_url($url . 'action=disable&theme=' . $theme_key . '&paged=' . $page . 411 '&s=' . $s, 'disable-theme_' . $stylesheet ) ) . '" aria-label="' . 412 esc_attr( sprintf( __( 'Network Disable %s' ), $theme->get( 'Name' ) ) ) . '">' . 413 ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) . '</a>'; 406 414 } 407 415 408 416 if ( current_user_can('edit_themes') ) { 409 $actions['edit'] = '<a href="' . esc_url('theme-editor.php?theme=' . $theme_key ) . '" title="' . esc_attr__('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>'; 417 /* translators: %s: theme name */ 418 $actions['edit'] = '<a href="' . esc_url('theme-editor.php?theme=' . $theme_key ) . '" class="edit" aria-label="' . 419 esc_attr( sprintf( __( 'Edit %s' ), $theme->get( 'Name' ) ) ) . '">' . __( 'Edit' ) . '</a>'; 410 420 } 411 421 412 422 if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $stylesheet != get_option( 'stylesheet' ) && $stylesheet != get_option( 'template' ) ) { 413 $actions['delete'] = '<a href="' . esc_url( wp_nonce_url( 'themes.php?action=delete-selected&checked[]=' . $theme_key . '&theme_status=' . $context . '&paged=' . $page . '&s=' . $s, 'bulk-themes' ) ) . '" title="' . esc_attr__( 'Delete this theme' ) . '" class="delete">' . __( 'Delete' ) . '</a>'; 423 /* translators: %s: theme name */ 424 $actions['delete'] = '<a href="' . esc_url( wp_nonce_url( 'themes.php?action=delete-selected&checked[]=' . $theme_key . '&theme_status=' . $context . 425 '&paged=' . $page . '&s=' . $s, 'bulk-themes' ) ) . '" class="delete" aria-label="' . 426 esc_attr( sprintf( __( 'Delete %s' ), $theme->get( 'Name' ) ) ) . '">' . __( 'Delete' ) . '</a>'; 414 427 } 415 428 /** 416 429 * Filter the action links displayed for each theme in the Multisite … … 495 508 $theme_meta[] = sprintf( __( 'By %s' ), $theme->display('Author') ); 496 509 497 510 if ( $theme->get('ThemeURI') ) { 498 $theme_meta[] = '<a href="' . $theme->display('ThemeURI') . '" title="' . esc_attr__( 'Visit theme homepage' ) . '">' . __( 'Visit Theme Site' ) . '</a>'; 511 /* translators: %s: theme name */ 512 $theme_meta[] = '<a href="' . $theme->display( 'ThemeURI' ) . '" aria-label="' . 513 esc_attr( sprintf( __( 'Visit %s homepage' ), $theme->get( 'Name' ) ) ) . '">' . __( 'Visit Theme Site' ) . '</a>'; 499 514 } 500 515 /** 501 516 * Filter the array of row meta for each theme in the Multisite themes