Edit File by line
/home/barbar84/www/wp-admin
File: widgets.php
} else {
[500] Fix | Delete
$theme_sidebars[ $sidebar ] = $registered_sidebar;
[501] Fix | Delete
}
[502] Fix | Delete
}
[503] Fix | Delete
[504] Fix | Delete
?>
[505] Fix | Delete
</div>
[506] Fix | Delete
</div>
[507] Fix | Delete
<?php
[508] Fix | Delete
[509] Fix | Delete
$i = 0;
[510] Fix | Delete
$split = 0;
[511] Fix | Delete
$single_sidebar_class = '';
[512] Fix | Delete
$sidebars_count = count( $theme_sidebars );
[513] Fix | Delete
[514] Fix | Delete
if ( $sidebars_count > 1 ) {
[515] Fix | Delete
$split = (int) ceil( $sidebars_count / 2 );
[516] Fix | Delete
} else {
[517] Fix | Delete
$single_sidebar_class = ' single-sidebar';
[518] Fix | Delete
}
[519] Fix | Delete
[520] Fix | Delete
?>
[521] Fix | Delete
<div class="widget-liquid-right">
[522] Fix | Delete
<div id="widgets-right" class="wp-clearfix<?php echo $single_sidebar_class; ?>">
[523] Fix | Delete
<div class="sidebars-column-1">
[524] Fix | Delete
<?php
[525] Fix | Delete
[526] Fix | Delete
foreach ( $theme_sidebars as $sidebar => $registered_sidebar ) {
[527] Fix | Delete
$wrap_class = 'widgets-holder-wrap';
[528] Fix | Delete
if ( ! empty( $registered_sidebar['class'] ) ) {
[529] Fix | Delete
$wrap_class .= ' sidebar-' . $registered_sidebar['class'];
[530] Fix | Delete
}
[531] Fix | Delete
[532] Fix | Delete
if ( $i > 0 ) {
[533] Fix | Delete
$wrap_class .= ' closed';
[534] Fix | Delete
}
[535] Fix | Delete
[536] Fix | Delete
if ( $split && $i === $split ) {
[537] Fix | Delete
?>
[538] Fix | Delete
</div><div class="sidebars-column-2">
[539] Fix | Delete
<?php
[540] Fix | Delete
}
[541] Fix | Delete
[542] Fix | Delete
?>
[543] Fix | Delete
<div class="<?php echo esc_attr( $wrap_class ); ?>">
[544] Fix | Delete
<?php
[545] Fix | Delete
// Show the control forms for each of the widgets in this sidebar.
[546] Fix | Delete
wp_list_widget_controls( $sidebar, $registered_sidebar['name'] );
[547] Fix | Delete
?>
[548] Fix | Delete
</div>
[549] Fix | Delete
<?php
[550] Fix | Delete
[551] Fix | Delete
$i++;
[552] Fix | Delete
}
[553] Fix | Delete
[554] Fix | Delete
?>
[555] Fix | Delete
</div>
[556] Fix | Delete
</div>
[557] Fix | Delete
</div>
[558] Fix | Delete
<form method="post">
[559] Fix | Delete
<?php wp_nonce_field( 'save-sidebar-widgets', '_wpnonce_widgets', false ); ?>
[560] Fix | Delete
</form>
[561] Fix | Delete
<br class="clear" />
[562] Fix | Delete
</div>
[563] Fix | Delete
[564] Fix | Delete
<div class="widgets-chooser">
[565] Fix | Delete
<ul class="widgets-chooser-sidebars"></ul>
[566] Fix | Delete
<div class="widgets-chooser-actions">
[567] Fix | Delete
<button class="button widgets-chooser-cancel"><?php _e( 'Cancel' ); ?></button>
[568] Fix | Delete
<button class="button button-primary widgets-chooser-add"><?php _e( 'Add Widget' ); ?></button>
[569] Fix | Delete
</div>
[570] Fix | Delete
</div>
[571] Fix | Delete
[572] Fix | Delete
<?php
[573] Fix | Delete
[574] Fix | Delete
/**
[575] Fix | Delete
* Fires after the available widgets and sidebars have loaded, before the admin footer.
[576] Fix | Delete
*
[577] Fix | Delete
* @since 2.2.0
[578] Fix | Delete
*/
[579] Fix | Delete
do_action( 'sidebar_admin_page' );
[580] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-footer.php';
[581] Fix | Delete
[582] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function