Edit File by line
/home/zeestwma/redstone.../wp-admin
File: admin.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WordPress Administration Bootstrap
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Administration
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* In WordPress Administration Screens
[9] Fix | Delete
*
[10] Fix | Delete
* @since 2.3.2
[11] Fix | Delete
*/
[12] Fix | Delete
if ( ! defined( 'WP_ADMIN' ) ) {
[13] Fix | Delete
define( 'WP_ADMIN', true );
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
if ( ! defined( 'WP_NETWORK_ADMIN' ) ) {
[17] Fix | Delete
define( 'WP_NETWORK_ADMIN', false );
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
if ( ! defined( 'WP_USER_ADMIN' ) ) {
[21] Fix | Delete
define( 'WP_USER_ADMIN', false );
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
if ( ! WP_NETWORK_ADMIN && ! WP_USER_ADMIN ) {
[25] Fix | Delete
define( 'WP_BLOG_ADMIN', true );
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) {
[29] Fix | Delete
define( 'WP_LOAD_IMPORTERS', true );
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
/** Load WordPress Bootstrap */
[33] Fix | Delete
require_once dirname( __DIR__ ) . '/wp-load.php';
[34] Fix | Delete
[35] Fix | Delete
nocache_headers();
[36] Fix | Delete
[37] Fix | Delete
if ( get_option( 'db_upgraded' ) ) {
[38] Fix | Delete
[39] Fix | Delete
flush_rewrite_rules();
[40] Fix | Delete
update_option( 'db_upgraded', false, true );
[41] Fix | Delete
[42] Fix | Delete
/**
[43] Fix | Delete
* Fires on the next page load after a successful DB upgrade.
[44] Fix | Delete
*
[45] Fix | Delete
* @since 2.8.0
[46] Fix | Delete
*/
[47] Fix | Delete
do_action( 'after_db_upgrade' );
[48] Fix | Delete
[49] Fix | Delete
} elseif ( ! wp_doing_ajax() && empty( $_POST )
[50] Fix | Delete
&& (int) get_option( 'db_version' ) !== $wp_db_version
[51] Fix | Delete
) {
[52] Fix | Delete
[53] Fix | Delete
if ( ! is_multisite() ) {
[54] Fix | Delete
wp_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );
[55] Fix | Delete
exit;
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
/**
[59] Fix | Delete
* Filters whether to attempt to perform the multisite DB upgrade routine.
[60] Fix | Delete
*
[61] Fix | Delete
* In single site, the user would be redirected to wp-admin/upgrade.php.
[62] Fix | Delete
* In multisite, the DB upgrade routine is automatically fired, but only
[63] Fix | Delete
* when this filter returns true.
[64] Fix | Delete
*
[65] Fix | Delete
* If the network is 50 sites or less, it will run every time. Otherwise,
[66] Fix | Delete
* it will throttle itself to reduce load.
[67] Fix | Delete
*
[68] Fix | Delete
* @since MU (3.0.0)
[69] Fix | Delete
*
[70] Fix | Delete
* @param bool $do_mu_upgrade Whether to perform the Multisite upgrade routine. Default true.
[71] Fix | Delete
*/
[72] Fix | Delete
if ( apply_filters( 'do_mu_upgrade', true ) ) {
[73] Fix | Delete
$blog_count = get_blog_count();
[74] Fix | Delete
[75] Fix | Delete
/*
[76] Fix | Delete
* If there are 50 or fewer sites, run every time. Otherwise, throttle to reduce load:
[77] Fix | Delete
* attempt to do no more than threshold value, with some +/- allowed.
[78] Fix | Delete
*/
[79] Fix | Delete
if ( $blog_count <= 50 || ( $blog_count > 50 && mt_rand( 0, (int) ( $blog_count / 50 ) ) === 1 ) ) {
[80] Fix | Delete
require_once ABSPATH . WPINC . '/http.php';
[81] Fix | Delete
[82] Fix | Delete
$response = wp_remote_get(
[83] Fix | Delete
admin_url( 'upgrade.php?step=1' ),
[84] Fix | Delete
array(
[85] Fix | Delete
'timeout' => 120,
[86] Fix | Delete
'httpversion' => '1.1',
[87] Fix | Delete
)
[88] Fix | Delete
);
[89] Fix | Delete
[90] Fix | Delete
/** This action is documented in wp-admin/network/upgrade.php */
[91] Fix | Delete
do_action( 'after_mu_upgrade', $response );
[92] Fix | Delete
[93] Fix | Delete
unset( $response );
[94] Fix | Delete
}
[95] Fix | Delete
[96] Fix | Delete
unset( $blog_count );
[97] Fix | Delete
}
[98] Fix | Delete
}
[99] Fix | Delete
[100] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/admin.php';
[101] Fix | Delete
[102] Fix | Delete
auth_redirect();
[103] Fix | Delete
[104] Fix | Delete
// Schedule Trash collection.
[105] Fix | Delete
if ( ! wp_next_scheduled( 'wp_scheduled_delete' ) && ! wp_installing() ) {
[106] Fix | Delete
wp_schedule_event( time(), 'daily', 'wp_scheduled_delete' );
[107] Fix | Delete
}
[108] Fix | Delete
[109] Fix | Delete
// Schedule transient cleanup.
[110] Fix | Delete
if ( ! wp_next_scheduled( 'delete_expired_transients' ) && ! wp_installing() ) {
[111] Fix | Delete
wp_schedule_event( time(), 'daily', 'delete_expired_transients' );
[112] Fix | Delete
}
[113] Fix | Delete
[114] Fix | Delete
set_screen_options();
[115] Fix | Delete
[116] Fix | Delete
$date_format = __( 'F j, Y' );
[117] Fix | Delete
$time_format = __( 'g:i a' );
[118] Fix | Delete
[119] Fix | Delete
wp_enqueue_script( 'common' );
[120] Fix | Delete
[121] Fix | Delete
/**
[122] Fix | Delete
* $pagenow is set in vars.php.
[123] Fix | Delete
* $wp_importers is sometimes set in wp-admin/includes/import.php.
[124] Fix | Delete
* The remaining variables are imported as globals elsewhere, declared as globals here.
[125] Fix | Delete
*
[126] Fix | Delete
* @global string $pagenow The filename of the current screen.
[127] Fix | Delete
* @global array $wp_importers
[128] Fix | Delete
* @global string $hook_suffix
[129] Fix | Delete
* @global string $plugin_page
[130] Fix | Delete
* @global string $typenow The post type of the current screen.
[131] Fix | Delete
* @global string $taxnow The taxonomy of the current screen.
[132] Fix | Delete
*/
[133] Fix | Delete
global $pagenow, $wp_importers, $hook_suffix, $plugin_page, $typenow, $taxnow;
[134] Fix | Delete
[135] Fix | Delete
$page_hook = null;
[136] Fix | Delete
[137] Fix | Delete
$editing = false;
[138] Fix | Delete
[139] Fix | Delete
if ( isset( $_GET['page'] ) ) {
[140] Fix | Delete
$plugin_page = wp_unslash( $_GET['page'] );
[141] Fix | Delete
$plugin_page = plugin_basename( $plugin_page );
[142] Fix | Delete
}
[143] Fix | Delete
[144] Fix | Delete
if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) {
[145] Fix | Delete
$typenow = $_REQUEST['post_type'];
[146] Fix | Delete
} else {
[147] Fix | Delete
$typenow = '';
[148] Fix | Delete
}
[149] Fix | Delete
[150] Fix | Delete
if ( isset( $_REQUEST['taxonomy'] ) && taxonomy_exists( $_REQUEST['taxonomy'] ) ) {
[151] Fix | Delete
$taxnow = $_REQUEST['taxonomy'];
[152] Fix | Delete
} else {
[153] Fix | Delete
$taxnow = '';
[154] Fix | Delete
}
[155] Fix | Delete
[156] Fix | Delete
if ( WP_NETWORK_ADMIN ) {
[157] Fix | Delete
require ABSPATH . 'wp-admin/network/menu.php';
[158] Fix | Delete
} elseif ( WP_USER_ADMIN ) {
[159] Fix | Delete
require ABSPATH . 'wp-admin/user/menu.php';
[160] Fix | Delete
} else {
[161] Fix | Delete
require ABSPATH . 'wp-admin/menu.php';
[162] Fix | Delete
}
[163] Fix | Delete
[164] Fix | Delete
if ( current_user_can( 'manage_options' ) ) {
[165] Fix | Delete
wp_raise_memory_limit( 'admin' );
[166] Fix | Delete
}
[167] Fix | Delete
[168] Fix | Delete
/**
[169] Fix | Delete
* Fires as an admin screen or script is being initialized.
[170] Fix | Delete
*
[171] Fix | Delete
* Note, this does not just run on user-facing admin screens.
[172] Fix | Delete
* It runs on admin-ajax.php and admin-post.php as well.
[173] Fix | Delete
*
[174] Fix | Delete
* This is roughly analogous to the more general {@see 'init'} hook, which fires earlier.
[175] Fix | Delete
*
[176] Fix | Delete
* @since 2.5.0
[177] Fix | Delete
*/
[178] Fix | Delete
do_action( 'admin_init' );
[179] Fix | Delete
[180] Fix | Delete
if ( isset( $plugin_page ) ) {
[181] Fix | Delete
if ( ! empty( $typenow ) ) {
[182] Fix | Delete
$the_parent = $pagenow . '?post_type=' . $typenow;
[183] Fix | Delete
} else {
[184] Fix | Delete
$the_parent = $pagenow;
[185] Fix | Delete
}
[186] Fix | Delete
[187] Fix | Delete
$page_hook = get_plugin_page_hook( $plugin_page, $the_parent );
[188] Fix | Delete
if ( ! $page_hook ) {
[189] Fix | Delete
$page_hook = get_plugin_page_hook( $plugin_page, $plugin_page );
[190] Fix | Delete
[191] Fix | Delete
// Back-compat for plugins using add_management_page().
[192] Fix | Delete
if ( empty( $page_hook ) && 'edit.php' === $pagenow && get_plugin_page_hook( $plugin_page, 'tools.php' ) ) {
[193] Fix | Delete
// There could be plugin specific params on the URL, so we need the whole query string.
[194] Fix | Delete
if ( ! empty( $_SERVER['QUERY_STRING'] ) ) {
[195] Fix | Delete
$query_string = $_SERVER['QUERY_STRING'];
[196] Fix | Delete
} else {
[197] Fix | Delete
$query_string = 'page=' . $plugin_page;
[198] Fix | Delete
}
[199] Fix | Delete
wp_redirect( admin_url( 'tools.php?' . $query_string ) );
[200] Fix | Delete
exit;
[201] Fix | Delete
}
[202] Fix | Delete
}
[203] Fix | Delete
unset( $the_parent );
[204] Fix | Delete
}
[205] Fix | Delete
[206] Fix | Delete
$hook_suffix = '';
[207] Fix | Delete
if ( isset( $page_hook ) ) {
[208] Fix | Delete
$hook_suffix = $page_hook;
[209] Fix | Delete
} elseif ( isset( $plugin_page ) ) {
[210] Fix | Delete
$hook_suffix = $plugin_page;
[211] Fix | Delete
} elseif ( isset( $pagenow ) ) {
[212] Fix | Delete
$hook_suffix = $pagenow;
[213] Fix | Delete
}
[214] Fix | Delete
[215] Fix | Delete
set_current_screen();
[216] Fix | Delete
[217] Fix | Delete
// Handle plugin admin pages.
[218] Fix | Delete
if ( isset( $plugin_page ) ) {
[219] Fix | Delete
if ( $page_hook ) {
[220] Fix | Delete
/**
[221] Fix | Delete
* Fires before a particular screen is loaded.
[222] Fix | Delete
*
[223] Fix | Delete
* The load-* hook fires in a number of contexts. This hook is for plugin screens
[224] Fix | Delete
* where a callback is provided when the screen is registered.
[225] Fix | Delete
*
[226] Fix | Delete
* The dynamic portion of the hook name, `$page_hook`, refers to a mixture of plugin
[227] Fix | Delete
* page information including:
[228] Fix | Delete
* 1. The page type. If the plugin page is registered as a submenu page, such as for
[229] Fix | Delete
* Settings, the page type would be 'settings'. Otherwise the type is 'toplevel'.
[230] Fix | Delete
* 2. A separator of '_page_'.
[231] Fix | Delete
* 3. The plugin basename minus the file extension.
[232] Fix | Delete
*
[233] Fix | Delete
* Together, the three parts form the `$page_hook`. Citing the example above,
[234] Fix | Delete
* the hook name used would be 'load-settings_page_pluginbasename'.
[235] Fix | Delete
*
[236] Fix | Delete
* @see get_plugin_page_hook()
[237] Fix | Delete
*
[238] Fix | Delete
* @since 2.1.0
[239] Fix | Delete
*/
[240] Fix | Delete
do_action( "load-{$page_hook}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[241] Fix | Delete
if ( ! isset( $_GET['noheader'] ) ) {
[242] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-header.php';
[243] Fix | Delete
}
[244] Fix | Delete
[245] Fix | Delete
/**
[246] Fix | Delete
* Used to call the registered callback for a plugin screen.
[247] Fix | Delete
*
[248] Fix | Delete
* This hook uses a dynamic hook name, `$page_hook`, which refers to a mixture of plugin
[249] Fix | Delete
* page information including:
[250] Fix | Delete
* 1. The page type. If the plugin page is registered as a submenu page, such as for
[251] Fix | Delete
* Settings, the page type would be 'settings'. Otherwise the type is 'toplevel'.
[252] Fix | Delete
* 2. A separator of '_page_'.
[253] Fix | Delete
* 3. The plugin basename minus the file extension.
[254] Fix | Delete
*
[255] Fix | Delete
* Together, the three parts form the `$page_hook`. Citing the example above,
[256] Fix | Delete
* the hook name used would be 'settings_page_pluginbasename'.
[257] Fix | Delete
*
[258] Fix | Delete
* @see get_plugin_page_hook()
[259] Fix | Delete
*
[260] Fix | Delete
* @since 1.5.0
[261] Fix | Delete
*/
[262] Fix | Delete
do_action( $page_hook );
[263] Fix | Delete
} else {
[264] Fix | Delete
if ( validate_file( $plugin_page ) ) {
[265] Fix | Delete
wp_die( __( 'Invalid plugin page.' ) );
[266] Fix | Delete
}
[267] Fix | Delete
[268] Fix | Delete
if ( ! ( file_exists( WP_PLUGIN_DIR . "/$plugin_page" ) && is_file( WP_PLUGIN_DIR . "/$plugin_page" ) )
[269] Fix | Delete
&& ! ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) && is_file( WPMU_PLUGIN_DIR . "/$plugin_page" ) )
[270] Fix | Delete
) {
[271] Fix | Delete
/* translators: %s: Admin page generated by a plugin. */
[272] Fix | Delete
wp_die( sprintf( __( 'Cannot load %s.' ), htmlentities( $plugin_page ) ) );
[273] Fix | Delete
}
[274] Fix | Delete
[275] Fix | Delete
/**
[276] Fix | Delete
* Fires before a particular screen is loaded.
[277] Fix | Delete
*
[278] Fix | Delete
* The load-* hook fires in a number of contexts. This hook is for plugin screens
[279] Fix | Delete
* where the file to load is directly included, rather than the use of a function.
[280] Fix | Delete
*
[281] Fix | Delete
* The dynamic portion of the hook name, `$plugin_page`, refers to the plugin basename.
[282] Fix | Delete
*
[283] Fix | Delete
* @see plugin_basename()
[284] Fix | Delete
*
[285] Fix | Delete
* @since 1.5.0
[286] Fix | Delete
*/
[287] Fix | Delete
do_action( "load-{$plugin_page}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[288] Fix | Delete
[289] Fix | Delete
if ( ! isset( $_GET['noheader'] ) ) {
[290] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-header.php';
[291] Fix | Delete
}
[292] Fix | Delete
[293] Fix | Delete
if ( file_exists( WPMU_PLUGIN_DIR . "/$plugin_page" ) ) {
[294] Fix | Delete
include WPMU_PLUGIN_DIR . "/$plugin_page";
[295] Fix | Delete
} else {
[296] Fix | Delete
include WP_PLUGIN_DIR . "/$plugin_page";
[297] Fix | Delete
}
[298] Fix | Delete
}
[299] Fix | Delete
[300] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-footer.php';
[301] Fix | Delete
[302] Fix | Delete
exit;
[303] Fix | Delete
} elseif ( isset( $_GET['import'] ) ) {
[304] Fix | Delete
[305] Fix | Delete
$importer = $_GET['import'];
[306] Fix | Delete
[307] Fix | Delete
if ( ! current_user_can( 'import' ) ) {
[308] Fix | Delete
wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) );
[309] Fix | Delete
}
[310] Fix | Delete
[311] Fix | Delete
if ( validate_file( $importer ) ) {
[312] Fix | Delete
wp_redirect( admin_url( 'import.php?invalid=' . $importer ) );
[313] Fix | Delete
exit;
[314] Fix | Delete
}
[315] Fix | Delete
[316] Fix | Delete
if ( ! isset( $wp_importers[ $importer ] ) || ! is_callable( $wp_importers[ $importer ][2] ) ) {
[317] Fix | Delete
wp_redirect( admin_url( 'import.php?invalid=' . $importer ) );
[318] Fix | Delete
exit;
[319] Fix | Delete
}
[320] Fix | Delete
[321] Fix | Delete
/**
[322] Fix | Delete
* Fires before an importer screen is loaded.
[323] Fix | Delete
*
[324] Fix | Delete
* The dynamic portion of the hook name, `$importer`, refers to the importer slug.
[325] Fix | Delete
*
[326] Fix | Delete
* Possible hook names include:
[327] Fix | Delete
*
[328] Fix | Delete
* - `load-importer-blogger`
[329] Fix | Delete
* - `load-importer-wpcat2tag`
[330] Fix | Delete
* - `load-importer-livejournal`
[331] Fix | Delete
* - `load-importer-mt`
[332] Fix | Delete
* - `load-importer-rss`
[333] Fix | Delete
* - `load-importer-tumblr`
[334] Fix | Delete
* - `load-importer-wordpress`
[335] Fix | Delete
*
[336] Fix | Delete
* @since 3.5.0
[337] Fix | Delete
*/
[338] Fix | Delete
do_action( "load-importer-{$importer}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[339] Fix | Delete
[340] Fix | Delete
// Used in the HTML title tag.
[341] Fix | Delete
$title = __( 'Import' );
[342] Fix | Delete
$parent_file = 'tools.php';
[343] Fix | Delete
$submenu_file = 'import.php';
[344] Fix | Delete
[345] Fix | Delete
if ( ! isset( $_GET['noheader'] ) ) {
[346] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-header.php';
[347] Fix | Delete
}
[348] Fix | Delete
[349] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
[350] Fix | Delete
[351] Fix | Delete
define( 'WP_IMPORTING', true );
[352] Fix | Delete
[353] Fix | Delete
/**
[354] Fix | Delete
* Filters whether to filter imported data through kses on import.
[355] Fix | Delete
*
[356] Fix | Delete
* Multisite uses this hook to filter all data through kses by default,
[357] Fix | Delete
* as a super administrator may be assisting an untrusted user.
[358] Fix | Delete
*
[359] Fix | Delete
* @since 3.1.0
[360] Fix | Delete
*
[361] Fix | Delete
* @param bool $force Whether to force data to be filtered through kses. Default false.
[362] Fix | Delete
*/
[363] Fix | Delete
if ( apply_filters( 'force_filtered_html_on_import', false ) ) {
[364] Fix | Delete
kses_init_filters(); // Always filter imported data with kses on multisite.
[365] Fix | Delete
}
[366] Fix | Delete
[367] Fix | Delete
call_user_func( $wp_importers[ $importer ][2] );
[368] Fix | Delete
[369] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-footer.php';
[370] Fix | Delete
[371] Fix | Delete
// Make sure rules are flushed.
[372] Fix | Delete
flush_rewrite_rules( false );
[373] Fix | Delete
[374] Fix | Delete
exit;
[375] Fix | Delete
} else {
[376] Fix | Delete
/**
[377] Fix | Delete
* Fires before a particular screen is loaded.
[378] Fix | Delete
*
[379] Fix | Delete
* The load-* hook fires in a number of contexts. This hook is for core screens.
[380] Fix | Delete
*
[381] Fix | Delete
* The dynamic portion of the hook name, `$pagenow`, is a global variable
[382] Fix | Delete
* referring to the filename of the current screen, such as 'admin.php',
[383] Fix | Delete
* 'post-new.php' etc. A complete hook for the latter would be
[384] Fix | Delete
* 'load-post-new.php'.
[385] Fix | Delete
*
[386] Fix | Delete
* @since 2.1.0
[387] Fix | Delete
*/
[388] Fix | Delete
do_action( "load-{$pagenow}" ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[389] Fix | Delete
[390] Fix | Delete
/*
[391] Fix | Delete
* The following hooks are fired to ensure backward compatibility.
[392] Fix | Delete
* In all other cases, 'load-' . $pagenow should be used instead.
[393] Fix | Delete
*/
[394] Fix | Delete
if ( 'page' === $typenow ) {
[395] Fix | Delete
if ( 'post-new.php' === $pagenow ) {
[396] Fix | Delete
do_action( 'load-page-new.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[397] Fix | Delete
} elseif ( 'post.php' === $pagenow ) {
[398] Fix | Delete
do_action( 'load-page.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[399] Fix | Delete
}
[400] Fix | Delete
} elseif ( 'edit-tags.php' === $pagenow ) {
[401] Fix | Delete
if ( 'category' === $taxnow ) {
[402] Fix | Delete
do_action( 'load-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[403] Fix | Delete
} elseif ( 'link_category' === $taxnow ) {
[404] Fix | Delete
do_action( 'load-edit-link-categories.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[405] Fix | Delete
}
[406] Fix | Delete
} elseif ( 'term.php' === $pagenow ) {
[407] Fix | Delete
do_action( 'load-edit-tags.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
[408] Fix | Delete
}
[409] Fix | Delete
}
[410] Fix | Delete
[411] Fix | Delete
if ( ! empty( $_REQUEST['action'] ) ) {
[412] Fix | Delete
$action = $_REQUEST['action'];
[413] Fix | Delete
[414] Fix | Delete
/**
[415] Fix | Delete
* Fires when an 'action' request variable is sent.
[416] Fix | Delete
*
[417] Fix | Delete
* The dynamic portion of the hook name, `$action`, refers to
[418] Fix | Delete
* the action derived from the `GET` or `POST` request.
[419] Fix | Delete
*
[420] Fix | Delete
* @since 2.6.0
[421] Fix | Delete
*/
[422] Fix | Delete
do_action( "admin_action_{$action}" );
[423] Fix | Delete
}
[424] Fix | Delete
[425] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function