wp-admin/includes/ajax-actions.php 1 location
|
@@ 3399-3403 (lines=5) @@
|
| 3396 |
|
} |
| 3397 |
|
} |
| 3398 |
|
|
| 3399 |
|
if ( ! is_multisite() && current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { |
| 3400 |
|
$status['customizeUrl'] = add_query_arg( array( |
| 3401 |
|
'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ), |
| 3402 |
|
), wp_customize_url( $slug ) ); |
| 3403 |
|
} |
| 3404 |
|
|
| 3405 |
|
/* |
| 3406 |
|
* See WP_Theme_Install_List_Table::_get_theme_status() if we wanted to check |
wp-admin/includes/theme.php 1 location
|
@@ 554-561 (lines=8) @@
|
| 551 |
|
} |
| 552 |
|
|
| 553 |
|
$customize_action = null; |
| 554 |
|
if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { |
| 555 |
|
$customize_action = esc_url( add_query_arg( |
| 556 |
|
array( |
| 557 |
|
'return' => urlencode( esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), |
| 558 |
|
), |
| 559 |
|
wp_customize_url( $slug ) |
| 560 |
|
) ); |
| 561 |
|
} |
| 562 |
|
|
| 563 |
|
$prepared_themes[ $slug ] = array( |
| 564 |
|
'id' => $slug, |