Edit File by line
/home/barbar84/www/wp-admin/includes
File: class-wp-screen.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Screen API: WP_Screen class
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Administration
[5] Fix | Delete
* @since 4.4.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Core class used to implement an admin screen API.
[10] Fix | Delete
*
[11] Fix | Delete
* @since 3.3.0
[12] Fix | Delete
*/
[13] Fix | Delete
final class WP_Screen {
[14] Fix | Delete
/**
[15] Fix | Delete
* Any action associated with the screen.
[16] Fix | Delete
*
[17] Fix | Delete
* 'add' for *-add.php and *-new.php screens. Empty otherwise.
[18] Fix | Delete
*
[19] Fix | Delete
* @since 3.3.0
[20] Fix | Delete
* @var string
[21] Fix | Delete
*/
[22] Fix | Delete
public $action;
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* The base type of the screen.
[26] Fix | Delete
*
[27] Fix | Delete
* This is typically the same as `$id` but with any post types and taxonomies stripped.
[28] Fix | Delete
* For example, for an `$id` of 'edit-post' the base is 'edit'.
[29] Fix | Delete
*
[30] Fix | Delete
* @since 3.3.0
[31] Fix | Delete
* @var string
[32] Fix | Delete
*/
[33] Fix | Delete
public $base;
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* The number of columns to display. Access with get_columns().
[37] Fix | Delete
*
[38] Fix | Delete
* @since 3.4.0
[39] Fix | Delete
* @var int
[40] Fix | Delete
*/
[41] Fix | Delete
private $columns = 0;
[42] Fix | Delete
[43] Fix | Delete
/**
[44] Fix | Delete
* The unique ID of the screen.
[45] Fix | Delete
*
[46] Fix | Delete
* @since 3.3.0
[47] Fix | Delete
* @var string
[48] Fix | Delete
*/
[49] Fix | Delete
public $id;
[50] Fix | Delete
[51] Fix | Delete
/**
[52] Fix | Delete
* Which admin the screen is in. network | user | site | false
[53] Fix | Delete
*
[54] Fix | Delete
* @since 3.5.0
[55] Fix | Delete
* @var string
[56] Fix | Delete
*/
[57] Fix | Delete
protected $in_admin;
[58] Fix | Delete
[59] Fix | Delete
/**
[60] Fix | Delete
* Whether the screen is in the network admin.
[61] Fix | Delete
*
[62] Fix | Delete
* Deprecated. Use in_admin() instead.
[63] Fix | Delete
*
[64] Fix | Delete
* @since 3.3.0
[65] Fix | Delete
* @deprecated 3.5.0
[66] Fix | Delete
* @var bool
[67] Fix | Delete
*/
[68] Fix | Delete
public $is_network;
[69] Fix | Delete
[70] Fix | Delete
/**
[71] Fix | Delete
* Whether the screen is in the user admin.
[72] Fix | Delete
*
[73] Fix | Delete
* Deprecated. Use in_admin() instead.
[74] Fix | Delete
*
[75] Fix | Delete
* @since 3.3.0
[76] Fix | Delete
* @deprecated 3.5.0
[77] Fix | Delete
* @var bool
[78] Fix | Delete
*/
[79] Fix | Delete
public $is_user;
[80] Fix | Delete
[81] Fix | Delete
/**
[82] Fix | Delete
* The base menu parent.
[83] Fix | Delete
*
[84] Fix | Delete
* This is derived from `$parent_file` by removing the query string and any .php extension.
[85] Fix | Delete
* `$parent_file` values of 'edit.php?post_type=page' and 'edit.php?post_type=post'
[86] Fix | Delete
* have a `$parent_base` of 'edit'.
[87] Fix | Delete
*
[88] Fix | Delete
* @since 3.3.0
[89] Fix | Delete
* @var string
[90] Fix | Delete
*/
[91] Fix | Delete
public $parent_base;
[92] Fix | Delete
[93] Fix | Delete
/**
[94] Fix | Delete
* The parent_file for the screen per the admin menu system.
[95] Fix | Delete
*
[96] Fix | Delete
* Some `$parent_file` values are 'edit.php?post_type=page', 'edit.php', and 'options-general.php'.
[97] Fix | Delete
*
[98] Fix | Delete
* @since 3.3.0
[99] Fix | Delete
* @var string
[100] Fix | Delete
*/
[101] Fix | Delete
public $parent_file;
[102] Fix | Delete
[103] Fix | Delete
/**
[104] Fix | Delete
* The post type associated with the screen, if any.
[105] Fix | Delete
*
[106] Fix | Delete
* The 'edit.php?post_type=page' screen has a post type of 'page'.
[107] Fix | Delete
* The 'edit-tags.php?taxonomy=$taxonomy&post_type=page' screen has a post type of 'page'.
[108] Fix | Delete
*
[109] Fix | Delete
* @since 3.3.0
[110] Fix | Delete
* @var string
[111] Fix | Delete
*/
[112] Fix | Delete
public $post_type;
[113] Fix | Delete
[114] Fix | Delete
/**
[115] Fix | Delete
* The taxonomy associated with the screen, if any.
[116] Fix | Delete
*
[117] Fix | Delete
* The 'edit-tags.php?taxonomy=category' screen has a taxonomy of 'category'.
[118] Fix | Delete
*
[119] Fix | Delete
* @since 3.3.0
[120] Fix | Delete
* @var string
[121] Fix | Delete
*/
[122] Fix | Delete
public $taxonomy;
[123] Fix | Delete
[124] Fix | Delete
/**
[125] Fix | Delete
* The help tab data associated with the screen, if any.
[126] Fix | Delete
*
[127] Fix | Delete
* @since 3.3.0
[128] Fix | Delete
* @var array
[129] Fix | Delete
*/
[130] Fix | Delete
private $_help_tabs = array();
[131] Fix | Delete
[132] Fix | Delete
/**
[133] Fix | Delete
* The help sidebar data associated with screen, if any.
[134] Fix | Delete
*
[135] Fix | Delete
* @since 3.3.0
[136] Fix | Delete
* @var string
[137] Fix | Delete
*/
[138] Fix | Delete
private $_help_sidebar = '';
[139] Fix | Delete
[140] Fix | Delete
/**
[141] Fix | Delete
* The accessible hidden headings and text associated with the screen, if any.
[142] Fix | Delete
*
[143] Fix | Delete
* @since 4.4.0
[144] Fix | Delete
* @var array
[145] Fix | Delete
*/
[146] Fix | Delete
private $_screen_reader_content = array();
[147] Fix | Delete
[148] Fix | Delete
/**
[149] Fix | Delete
* Stores old string-based help.
[150] Fix | Delete
*
[151] Fix | Delete
* @var array
[152] Fix | Delete
*/
[153] Fix | Delete
private static $_old_compat_help = array();
[154] Fix | Delete
[155] Fix | Delete
/**
[156] Fix | Delete
* The screen options associated with screen, if any.
[157] Fix | Delete
*
[158] Fix | Delete
* @since 3.3.0
[159] Fix | Delete
* @var array
[160] Fix | Delete
*/
[161] Fix | Delete
private $_options = array();
[162] Fix | Delete
[163] Fix | Delete
/**
[164] Fix | Delete
* The screen object registry.
[165] Fix | Delete
*
[166] Fix | Delete
* @since 3.3.0
[167] Fix | Delete
*
[168] Fix | Delete
* @var array
[169] Fix | Delete
*/
[170] Fix | Delete
private static $_registry = array();
[171] Fix | Delete
[172] Fix | Delete
/**
[173] Fix | Delete
* Stores the result of the public show_screen_options function.
[174] Fix | Delete
*
[175] Fix | Delete
* @since 3.3.0
[176] Fix | Delete
* @var bool
[177] Fix | Delete
*/
[178] Fix | Delete
private $_show_screen_options;
[179] Fix | Delete
[180] Fix | Delete
/**
[181] Fix | Delete
* Stores the 'screen_settings' section of screen options.
[182] Fix | Delete
*
[183] Fix | Delete
* @since 3.3.0
[184] Fix | Delete
* @var string
[185] Fix | Delete
*/
[186] Fix | Delete
private $_screen_settings;
[187] Fix | Delete
[188] Fix | Delete
/**
[189] Fix | Delete
* Whether the screen is using the block editor.
[190] Fix | Delete
*
[191] Fix | Delete
* @since 5.0.0
[192] Fix | Delete
* @var bool
[193] Fix | Delete
*/
[194] Fix | Delete
public $is_block_editor = false;
[195] Fix | Delete
[196] Fix | Delete
/**
[197] Fix | Delete
* Fetches a screen object.
[198] Fix | Delete
*
[199] Fix | Delete
* @since 3.3.0
[200] Fix | Delete
*
[201] Fix | Delete
* @global string $hook_suffix
[202] Fix | Delete
*
[203] Fix | Delete
* @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen.
[204] Fix | Delete
* Defaults to the current $hook_suffix global.
[205] Fix | Delete
* @return WP_Screen Screen object.
[206] Fix | Delete
*/
[207] Fix | Delete
public static function get( $hook_name = '' ) {
[208] Fix | Delete
if ( $hook_name instanceof WP_Screen ) {
[209] Fix | Delete
return $hook_name;
[210] Fix | Delete
}
[211] Fix | Delete
[212] Fix | Delete
$post_type = null;
[213] Fix | Delete
$taxonomy = null;
[214] Fix | Delete
$in_admin = false;
[215] Fix | Delete
$action = '';
[216] Fix | Delete
$is_block_editor = false;
[217] Fix | Delete
[218] Fix | Delete
if ( $hook_name ) {
[219] Fix | Delete
$id = $hook_name;
[220] Fix | Delete
} else {
[221] Fix | Delete
$id = $GLOBALS['hook_suffix'];
[222] Fix | Delete
}
[223] Fix | Delete
[224] Fix | Delete
// For those pesky meta boxes.
[225] Fix | Delete
if ( $hook_name && post_type_exists( $hook_name ) ) {
[226] Fix | Delete
$post_type = $id;
[227] Fix | Delete
$id = 'post'; // Changes later. Ends up being $base.
[228] Fix | Delete
} else {
[229] Fix | Delete
if ( '.php' === substr( $id, -4 ) ) {
[230] Fix | Delete
$id = substr( $id, 0, -4 );
[231] Fix | Delete
}
[232] Fix | Delete
[233] Fix | Delete
if ( in_array( $id, array( 'post-new', 'link-add', 'media-new', 'user-new' ), true ) ) {
[234] Fix | Delete
$id = substr( $id, 0, -4 );
[235] Fix | Delete
$action = 'add';
[236] Fix | Delete
}
[237] Fix | Delete
}
[238] Fix | Delete
[239] Fix | Delete
if ( ! $post_type && $hook_name ) {
[240] Fix | Delete
if ( '-network' === substr( $id, -8 ) ) {
[241] Fix | Delete
$id = substr( $id, 0, -8 );
[242] Fix | Delete
$in_admin = 'network';
[243] Fix | Delete
} elseif ( '-user' === substr( $id, -5 ) ) {
[244] Fix | Delete
$id = substr( $id, 0, -5 );
[245] Fix | Delete
$in_admin = 'user';
[246] Fix | Delete
}
[247] Fix | Delete
[248] Fix | Delete
$id = sanitize_key( $id );
[249] Fix | Delete
if ( 'edit-comments' !== $id && 'edit-tags' !== $id && 'edit-' === substr( $id, 0, 5 ) ) {
[250] Fix | Delete
$maybe = substr( $id, 5 );
[251] Fix | Delete
if ( taxonomy_exists( $maybe ) ) {
[252] Fix | Delete
$id = 'edit-tags';
[253] Fix | Delete
$taxonomy = $maybe;
[254] Fix | Delete
} elseif ( post_type_exists( $maybe ) ) {
[255] Fix | Delete
$id = 'edit';
[256] Fix | Delete
$post_type = $maybe;
[257] Fix | Delete
}
[258] Fix | Delete
}
[259] Fix | Delete
[260] Fix | Delete
if ( ! $in_admin ) {
[261] Fix | Delete
$in_admin = 'site';
[262] Fix | Delete
}
[263] Fix | Delete
} else {
[264] Fix | Delete
if ( defined( 'WP_NETWORK_ADMIN' ) && WP_NETWORK_ADMIN ) {
[265] Fix | Delete
$in_admin = 'network';
[266] Fix | Delete
} elseif ( defined( 'WP_USER_ADMIN' ) && WP_USER_ADMIN ) {
[267] Fix | Delete
$in_admin = 'user';
[268] Fix | Delete
} else {
[269] Fix | Delete
$in_admin = 'site';
[270] Fix | Delete
}
[271] Fix | Delete
}
[272] Fix | Delete
[273] Fix | Delete
if ( 'index' === $id ) {
[274] Fix | Delete
$id = 'dashboard';
[275] Fix | Delete
} elseif ( 'front' === $id ) {
[276] Fix | Delete
$in_admin = false;
[277] Fix | Delete
}
[278] Fix | Delete
[279] Fix | Delete
$base = $id;
[280] Fix | Delete
[281] Fix | Delete
// If this is the current screen, see if we can be more accurate for post types and taxonomies.
[282] Fix | Delete
if ( ! $hook_name ) {
[283] Fix | Delete
if ( isset( $_REQUEST['post_type'] ) ) {
[284] Fix | Delete
$post_type = post_type_exists( $_REQUEST['post_type'] ) ? $_REQUEST['post_type'] : false;
[285] Fix | Delete
}
[286] Fix | Delete
if ( isset( $_REQUEST['taxonomy'] ) ) {
[287] Fix | Delete
$taxonomy = taxonomy_exists( $_REQUEST['taxonomy'] ) ? $_REQUEST['taxonomy'] : false;
[288] Fix | Delete
}
[289] Fix | Delete
[290] Fix | Delete
switch ( $base ) {
[291] Fix | Delete
case 'post':
[292] Fix | Delete
if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) {
[293] Fix | Delete
wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 );
[294] Fix | Delete
} elseif ( isset( $_GET['post'] ) ) {
[295] Fix | Delete
$post_id = (int) $_GET['post'];
[296] Fix | Delete
} elseif ( isset( $_POST['post_ID'] ) ) {
[297] Fix | Delete
$post_id = (int) $_POST['post_ID'];
[298] Fix | Delete
} else {
[299] Fix | Delete
$post_id = 0;
[300] Fix | Delete
}
[301] Fix | Delete
[302] Fix | Delete
if ( $post_id ) {
[303] Fix | Delete
$post = get_post( $post_id );
[304] Fix | Delete
if ( $post ) {
[305] Fix | Delete
$post_type = $post->post_type;
[306] Fix | Delete
[307] Fix | Delete
/** This filter is documented in wp-admin/post.php */
[308] Fix | Delete
$replace_editor = apply_filters( 'replace_editor', false, $post );
[309] Fix | Delete
[310] Fix | Delete
if ( ! $replace_editor ) {
[311] Fix | Delete
$is_block_editor = use_block_editor_for_post( $post );
[312] Fix | Delete
}
[313] Fix | Delete
}
[314] Fix | Delete
}
[315] Fix | Delete
break;
[316] Fix | Delete
case 'edit-tags':
[317] Fix | Delete
case 'term':
[318] Fix | Delete
if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) {
[319] Fix | Delete
$post_type = 'post';
[320] Fix | Delete
}
[321] Fix | Delete
break;
[322] Fix | Delete
case 'upload':
[323] Fix | Delete
$post_type = 'attachment';
[324] Fix | Delete
break;
[325] Fix | Delete
}
[326] Fix | Delete
}
[327] Fix | Delete
[328] Fix | Delete
switch ( $base ) {
[329] Fix | Delete
case 'post':
[330] Fix | Delete
if ( null === $post_type ) {
[331] Fix | Delete
$post_type = 'post';
[332] Fix | Delete
}
[333] Fix | Delete
[334] Fix | Delete
// When creating a new post, use the default block editor support value for the post type.
[335] Fix | Delete
if ( empty( $post_id ) ) {
[336] Fix | Delete
$is_block_editor = use_block_editor_for_post_type( $post_type );
[337] Fix | Delete
}
[338] Fix | Delete
[339] Fix | Delete
$id = $post_type;
[340] Fix | Delete
break;
[341] Fix | Delete
case 'edit':
[342] Fix | Delete
if ( null === $post_type ) {
[343] Fix | Delete
$post_type = 'post';
[344] Fix | Delete
}
[345] Fix | Delete
$id .= '-' . $post_type;
[346] Fix | Delete
break;
[347] Fix | Delete
case 'edit-tags':
[348] Fix | Delete
case 'term':
[349] Fix | Delete
if ( null === $taxonomy ) {
[350] Fix | Delete
$taxonomy = 'post_tag';
[351] Fix | Delete
}
[352] Fix | Delete
// The edit-tags ID does not contain the post type. Look for it in the request.
[353] Fix | Delete
if ( null === $post_type ) {
[354] Fix | Delete
$post_type = 'post';
[355] Fix | Delete
if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) ) {
[356] Fix | Delete
$post_type = $_REQUEST['post_type'];
[357] Fix | Delete
}
[358] Fix | Delete
}
[359] Fix | Delete
[360] Fix | Delete
$id = 'edit-' . $taxonomy;
[361] Fix | Delete
break;
[362] Fix | Delete
}
[363] Fix | Delete
[364] Fix | Delete
if ( 'network' === $in_admin ) {
[365] Fix | Delete
$id .= '-network';
[366] Fix | Delete
$base .= '-network';
[367] Fix | Delete
} elseif ( 'user' === $in_admin ) {
[368] Fix | Delete
$id .= '-user';
[369] Fix | Delete
$base .= '-user';
[370] Fix | Delete
}
[371] Fix | Delete
[372] Fix | Delete
if ( isset( self::$_registry[ $id ] ) ) {
[373] Fix | Delete
$screen = self::$_registry[ $id ];
[374] Fix | Delete
if ( get_current_screen() === $screen ) {
[375] Fix | Delete
return $screen;
[376] Fix | Delete
}
[377] Fix | Delete
} else {
[378] Fix | Delete
$screen = new self();
[379] Fix | Delete
$screen->id = $id;
[380] Fix | Delete
}
[381] Fix | Delete
[382] Fix | Delete
$screen->base = $base;
[383] Fix | Delete
$screen->action = $action;
[384] Fix | Delete
$screen->post_type = (string) $post_type;
[385] Fix | Delete
$screen->taxonomy = (string) $taxonomy;
[386] Fix | Delete
$screen->is_user = ( 'user' === $in_admin );
[387] Fix | Delete
$screen->is_network = ( 'network' === $in_admin );
[388] Fix | Delete
$screen->in_admin = $in_admin;
[389] Fix | Delete
$screen->is_block_editor = $is_block_editor;
[390] Fix | Delete
[391] Fix | Delete
self::$_registry[ $id ] = $screen;
[392] Fix | Delete
[393] Fix | Delete
return $screen;
[394] Fix | Delete
}
[395] Fix | Delete
[396] Fix | Delete
/**
[397] Fix | Delete
* Makes the screen object the current screen.
[398] Fix | Delete
*
[399] Fix | Delete
* @see set_current_screen()
[400] Fix | Delete
* @since 3.3.0
[401] Fix | Delete
*
[402] Fix | Delete
* @global WP_Screen $current_screen WordPress current screen object.
[403] Fix | Delete
* @global string $taxnow
[404] Fix | Delete
* @global string $typenow
[405] Fix | Delete
*/
[406] Fix | Delete
public function set_current_screen() {
[407] Fix | Delete
global $current_screen, $taxnow, $typenow;
[408] Fix | Delete
$current_screen = $this;
[409] Fix | Delete
$taxnow = $this->taxonomy;
[410] Fix | Delete
$typenow = $this->post_type;
[411] Fix | Delete
[412] Fix | Delete
/**
[413] Fix | Delete
* Fires after the current screen has been set.
[414] Fix | Delete
*
[415] Fix | Delete
* @since 3.0.0
[416] Fix | Delete
*
[417] Fix | Delete
* @param WP_Screen $current_screen Current WP_Screen object.
[418] Fix | Delete
*/
[419] Fix | Delete
do_action( 'current_screen', $current_screen );
[420] Fix | Delete
}
[421] Fix | Delete
[422] Fix | Delete
/**
[423] Fix | Delete
* Constructor
[424] Fix | Delete
*
[425] Fix | Delete
* @since 3.3.0
[426] Fix | Delete
*/
[427] Fix | Delete
private function __construct() {}
[428] Fix | Delete
[429] Fix | Delete
/**
[430] Fix | Delete
* Indicates whether the screen is in a particular admin
[431] Fix | Delete
*
[432] Fix | Delete
* @since 3.5.0
[433] Fix | Delete
*
[434] Fix | Delete
* @param string $admin The admin to check against (network | user | site).
[435] Fix | Delete
* If empty any of the three admins will result in true.
[436] Fix | Delete
* @return bool True if the screen is in the indicated admin, false otherwise.
[437] Fix | Delete
*/
[438] Fix | Delete
public function in_admin( $admin = null ) {
[439] Fix | Delete
if ( empty( $admin ) ) {
[440] Fix | Delete
return (bool) $this->in_admin;
[441] Fix | Delete
}
[442] Fix | Delete
[443] Fix | Delete
return ( $admin === $this->in_admin );
[444] Fix | Delete
}
[445] Fix | Delete
[446] Fix | Delete
/**
[447] Fix | Delete
* Sets or returns whether the block editor is loading on the current screen.
[448] Fix | Delete
*
[449] Fix | Delete
* @since 5.0.0
[450] Fix | Delete
*
[451] Fix | Delete
* @param bool $set Optional. Sets whether the block editor is loading on the current screen or not.
[452] Fix | Delete
* @return bool True if the block editor is being loaded, false otherwise.
[453] Fix | Delete
*/
[454] Fix | Delete
public function is_block_editor( $set = null ) {
[455] Fix | Delete
if ( null !== $set ) {
[456] Fix | Delete
$this->is_block_editor = (bool) $set;
[457] Fix | Delete
}
[458] Fix | Delete
[459] Fix | Delete
return $this->is_block_editor;
[460] Fix | Delete
}
[461] Fix | Delete
[462] Fix | Delete
/**
[463] Fix | Delete
* Sets the old string-based contextual help for the screen for backward compatibility.
[464] Fix | Delete
*
[465] Fix | Delete
* @since 3.3.0
[466] Fix | Delete
*
[467] Fix | Delete
* @param WP_Screen $screen A screen object.
[468] Fix | Delete
* @param string $help Help text.
[469] Fix | Delete
*/
[470] Fix | Delete
public static function add_old_compat_help( $screen, $help ) {
[471] Fix | Delete
self::$_old_compat_help[ $screen->id ] = $help;
[472] Fix | Delete
}
[473] Fix | Delete
[474] Fix | Delete
/**
[475] Fix | Delete
* Set the parent information for the screen.
[476] Fix | Delete
*
[477] Fix | Delete
* This is called in admin-header.php after the menu parent for the screen has been determined.
[478] Fix | Delete
*
[479] Fix | Delete
* @since 3.3.0
[480] Fix | Delete
*
[481] Fix | Delete
* @param string $parent_file The parent file of the screen. Typically the $parent_file global.
[482] Fix | Delete
*/
[483] Fix | Delete
public function set_parentage( $parent_file ) {
[484] Fix | Delete
$this->parent_file = $parent_file;
[485] Fix | Delete
list( $this->parent_base ) = explode( '?', $parent_file );
[486] Fix | Delete
$this->parent_base = str_replace( '.php', '', $this->parent_base );
[487] Fix | Delete
}
[488] Fix | Delete
[489] Fix | Delete
/**
[490] Fix | Delete
* Adds an option for the screen.
[491] Fix | Delete
*
[492] Fix | Delete
* Call this in template files after admin.php is loaded and before admin-header.php is loaded
[493] Fix | Delete
* to add screen options.
[494] Fix | Delete
*
[495] Fix | Delete
* @since 3.3.0
[496] Fix | Delete
*
[497] Fix | Delete
* @param string $option Option ID.
[498] Fix | Delete
* @param mixed $args Option-dependent arguments.
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function