Changeset 21752
- Timestamp:
- 09/04/2012 10:25:25 PM (12 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r21198 r21752 288 288 289 289 if ( current_user_can('edit_themes') ) 290 $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>';290 $actions['edit'] = '<a href="' . esc_url('theme-editor.php?theme=' . urlencode( $theme_key ) ) . '" title="' . esc_attr__('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>'; 291 291 292 292 if ( ! $allowed && current_user_can( 'delete_themes' ) && ! $this->is_site_themes && $theme_key != get_option( 'stylesheet' ) && $theme_key != get_option( 'template' ) ) -
trunk/wp-admin/includes/class-wp-themes-list-table.php
r21650 r21752 129 129 130 130 $preview_link = esc_url( add_query_arg( 131 array( 'preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'preview_iframe' => true, 'TB_iframe' => 'true' ),131 array( 'preview' => 1, 'template' => urlencode( $template ), 'stylesheet' => urlencode( $stylesheet ), 'preview_iframe' => true, 'TB_iframe' => 'true' ), 132 132 home_url( '/' ) ) ); 133 133 -
trunk/wp-admin/includes/class-wp-upgrader.php
r21236 r21752 1501 1501 $preview_link = add_query_arg( array( 1502 1502 'preview' => 1, 1503 'template' => $template,1504 'stylesheet' => $stylesheet,1503 'template' => urlencode( $template ), 1504 'stylesheet' => urlencode( $stylesheet ), 1505 1505 ), trailingslashit( get_home_url() ) ); 1506 1506 1507 1507 $activate_link = add_query_arg( array( 1508 1508 'action' => 'activate', 1509 'template' => $template,1510 'stylesheet' => $stylesheet,1509 'template' => urlencode( $template ), 1510 'stylesheet' => urlencode( $stylesheet ), 1511 1511 ), admin_url('themes.php') ); 1512 1512 $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet ); … … 1565 1565 $preview_link = add_query_arg( array( 1566 1566 'preview' => 1, 1567 'template' => $template,1568 'stylesheet' => $stylesheet,1567 'template' => urlencode( $template ), 1568 'stylesheet' => urlencode( $stylesheet ), 1569 1569 ), trailingslashit( get_home_url() ) ); 1570 1570 1571 1571 $activate_link = add_query_arg( array( 1572 1572 'action' => 'activate', 1573 'template' => $template,1574 'stylesheet' => $stylesheet,1573 'template' => urlencode( $template ), 1574 'stylesheet' => urlencode( $stylesheet ), 1575 1575 ), admin_url('themes.php') ); 1576 1576 $activate_link = wp_nonce_url( $activate_link, 'switch-theme_' . $stylesheet );
Note: See TracChangeset
for help on using the changeset viewer.