Changeset 43571 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 08/17/2018 01:50:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r43228 r43571 515 515 516 516 wp_terms_checklist( 517 0, array( 517 0, 518 array( 518 519 'taxonomy' => $taxonomy->name, 519 520 'descendants_and_self' => $cat_id, … … 548 549 549 550 wp_terms_checklist( 550 0, array( 551 0, 552 array( 551 553 'taxonomy' => $taxonomy->name, 552 554 'descendants_and_self' => $term_id, … … 999 1001 1000 1002 $tags = get_terms( 1001 $taxonomy, array( 1003 $taxonomy, 1004 array( 1002 1005 'number' => 45, 1003 1006 'orderby' => 'count', … … 1021 1024 // We need raw tag names here, so don't filter the output 1022 1025 $return = wp_generate_tag_cloud( 1023 $tags, array( 1026 $tags, 1027 array( 1024 1028 'filter' => 0, 1025 1029 'format' => 'list', … … 1461 1465 'meta_value' => $value, 1462 1466 'meta_id' => $mid, 1463 ), $c 1467 ), 1468 $c 1464 1469 ), 1465 1470 'position' => 0, … … 1626 1631 ob_start(); 1627 1632 call_user_func_array( 1628 $callback, array( 1633 $callback, 1634 array( 1629 1635 null, 1630 1636 array( … … 3167 3173 3168 3174 $args = wp_parse_args( 3169 wp_unslash( $_REQUEST['request'] ), array( 3175 wp_unslash( $_REQUEST['request'] ), 3176 array( 3170 3177 'per_page' => 20, 3171 3178 'fields' => $theme_field_defaults, … … 3197 3204 'theme' => $theme->slug, 3198 3205 '_wpnonce' => wp_create_nonce( 'install-theme_' . $theme->slug ), 3199 ), $update_php 3206 ), 3207 $update_php 3200 3208 ); 3201 3209 … … 3207 3215 '_wpnonce' => wp_create_nonce( 'enable-theme_' . $theme->slug ), 3208 3216 'theme' => $theme->slug, 3209 ), network_admin_url( 'themes.php' ) 3217 ), 3218 network_admin_url( 'themes.php' ) 3210 3219 ); 3211 3220 } else { … … 3215 3224 '_wpnonce' => wp_create_nonce( 'switch-theme_' . $theme->slug ), 3216 3225 'stylesheet' => $theme->slug, 3217 ), admin_url( 'themes.php' ) 3226 ), 3227 admin_url( 'themes.php' ) 3218 3228 ); 3219 3229 } … … 3224 3234 array( 3225 3235 'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ), 3226 ), wp_customize_url( $theme->slug ) 3236 ), 3237 wp_customize_url( $theme->slug ) 3227 3238 ); 3228 3239 } … … 3667 3678 3668 3679 $api = themes_api( 3669 'theme_information', array( 3680 'theme_information', 3681 array( 3670 3682 'slug' => $slug, 3671 3683 'fields' => array( 'sections' => false ), … … 3720 3732 '_wpnonce' => wp_create_nonce( 'enable-theme_' . $slug ), 3721 3733 'theme' => $slug, 3722 ), network_admin_url( 'themes.php' ) 3734 ), 3735 network_admin_url( 'themes.php' ) 3723 3736 ); 3724 3737 } else { … … 3728 3741 '_wpnonce' => wp_create_nonce( 'switch-theme_' . $slug ), 3729 3742 'stylesheet' => $slug, 3730 ), admin_url( 'themes.php' ) 3743 ), 3744 admin_url( 'themes.php' ) 3731 3745 ); 3732 3746 } … … 3737 3751 array( 3738 3752 'return' => urlencode( network_admin_url( 'theme-install.php', 'relative' ) ), 3739 ), wp_customize_url( $slug ) 3753 ), 3754 wp_customize_url( $slug ) 3740 3755 ); 3741 3756 } … … 3951 3966 3952 3967 $api = plugins_api( 3953 'plugin_information', array( 3968 'plugin_information', 3969 array( 3954 3970 'slug' => sanitize_key( wp_unslash( $_POST['slug'] ) ), 3955 3971 'fields' => array( … … 4011 4027 'action' => 'activate', 4012 4028 'plugin' => $install_status['file'], 4013 ), $plugins_url 4029 ), 4030 $plugins_url 4014 4031 ); 4015 4032 } … … 4221 4238 /** @var WP_Plugins_List_Table $wp_list_table */ 4222 4239 $wp_list_table = _get_list_table( 4223 'WP_Plugins_List_Table', array( 4240 'WP_Plugins_List_Table', 4241 array( 4224 4242 'screen' => get_current_screen(), 4225 4243 ) … … 4236 4254 $_SERVER['REQUEST_URI'] = add_query_arg( 4237 4255 array_diff_key( 4238 $_POST, array( 4256 $_POST, 4257 array( 4239 4258 '_ajax_nonce' => null, 4240 4259 'action' => null, 4241 4260 ) 4242 ), network_admin_url( 'plugins.php', 'relative' ) 4261 ), 4262 network_admin_url( 'plugins.php', 'relative' ) 4243 4263 ); 4244 4264 … … 4270 4290 /** @var WP_Plugin_Install_List_Table $wp_list_table */ 4271 4291 $wp_list_table = _get_list_table( 4272 'WP_Plugin_Install_List_Table', array( 4292 'WP_Plugin_Install_List_Table', 4293 array( 4273 4294 'screen' => get_current_screen(), 4274 4295 ) … … 4285 4306 $_SERVER['REQUEST_URI'] = add_query_arg( 4286 4307 array_diff_key( 4287 $_POST, array( 4308 $_POST, 4309 array( 4288 4310 '_ajax_nonce' => null, 4289 4311 'action' => null, 4290 4312 ) 4291 ), network_admin_url( 'plugin-install.php', 'relative' ) 4313 ), 4314 network_admin_url( 'plugin-install.php', 'relative' ) 4292 4315 ); 4293 4316
Note: See TracChangeset
for help on using the changeset viewer.