Edit File by line
/home/zeestwma/redstone.../wp-admin
File: widgets.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Widget administration screen.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Administration
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/** WordPress Administration Bootstrap */
[8] Fix | Delete
require_once __DIR__ . '/admin.php';
[9] Fix | Delete
[10] Fix | Delete
/** WordPress Administration Widgets API */
[11] Fix | Delete
require_once ABSPATH . 'wp-admin/includes/widgets.php';
[12] Fix | Delete
[13] Fix | Delete
if ( ! current_user_can( 'edit_theme_options' ) ) {
[14] Fix | Delete
wp_die(
[15] Fix | Delete
'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
[16] Fix | Delete
'<p>' . __( 'Sorry, you are not allowed to edit theme options on this site.' ) . '</p>',
[17] Fix | Delete
403
[18] Fix | Delete
);
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
if ( ! current_theme_supports( 'widgets' ) ) {
[22] Fix | Delete
wp_die( __( 'The theme you are currently using is not widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please <a href="https://developer.wordpress.org/themes/functionality/widgets/">follow these instructions</a>.' ) );
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
// Used in the HTML title tag.
[26] Fix | Delete
$title = __( 'Widgets' );
[27] Fix | Delete
$parent_file = 'themes.php';
[28] Fix | Delete
[29] Fix | Delete
if ( wp_use_widgets_block_editor() ) {
[30] Fix | Delete
require ABSPATH . 'wp-admin/widgets-form-blocks.php';
[31] Fix | Delete
} else {
[32] Fix | Delete
require ABSPATH . 'wp-admin/widgets-form.php';
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function