Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../public_h.../wp-inclu...
File: widgets.php
} else {
[2000] Fix | Delete
return '';
[2001] Fix | Delete
}
[2002] Fix | Delete
[2003] Fix | Delete
$params = array_merge(
[2004] Fix | Delete
array(
[2005] Fix | Delete
array_merge(
[2006] Fix | Delete
$sidebar,
[2007] Fix | Delete
array(
[2008] Fix | Delete
'widget_id' => $widget_id,
[2009] Fix | Delete
'widget_name' => $wp_registered_widgets[ $widget_id ]['name'],
[2010] Fix | Delete
)
[2011] Fix | Delete
),
[2012] Fix | Delete
),
[2013] Fix | Delete
(array) $wp_registered_widgets[ $widget_id ]['params']
[2014] Fix | Delete
);
[2015] Fix | Delete
[2016] Fix | Delete
// Substitute HTML `id` and `class` attributes into `before_widget`.
[2017] Fix | Delete
$classname_ = '';
[2018] Fix | Delete
foreach ( (array) $wp_registered_widgets[ $widget_id ]['classname'] as $cn ) {
[2019] Fix | Delete
if ( is_string( $cn ) ) {
[2020] Fix | Delete
$classname_ .= '_' . $cn;
[2021] Fix | Delete
} elseif ( is_object( $cn ) ) {
[2022] Fix | Delete
$classname_ .= '_' . get_class( $cn );
[2023] Fix | Delete
}
[2024] Fix | Delete
}
[2025] Fix | Delete
$classname_ = ltrim( $classname_, '_' );
[2026] Fix | Delete
$params[0]['before_widget'] = sprintf( $params[0]['before_widget'], $widget_id, $classname_ );
[2027] Fix | Delete
[2028] Fix | Delete
/** This filter is documented in wp-includes/widgets.php */
[2029] Fix | Delete
$params = apply_filters( 'dynamic_sidebar_params', $params );
[2030] Fix | Delete
[2031] Fix | Delete
$callback = $wp_registered_widgets[ $widget_id ]['callback'];
[2032] Fix | Delete
[2033] Fix | Delete
ob_start();
[2034] Fix | Delete
[2035] Fix | Delete
/** This filter is documented in wp-includes/widgets.php */
[2036] Fix | Delete
do_action( 'dynamic_sidebar', $wp_registered_widgets[ $widget_id ] );
[2037] Fix | Delete
[2038] Fix | Delete
if ( is_callable( $callback ) ) {
[2039] Fix | Delete
call_user_func_array( $callback, $params );
[2040] Fix | Delete
}
[2041] Fix | Delete
[2042] Fix | Delete
return ob_get_clean();
[2043] Fix | Delete
}
[2044] Fix | Delete
[2045] Fix | Delete
/**
[2046] Fix | Delete
* Calls the control callback of a widget and returns the output.
[2047] Fix | Delete
*
[2048] Fix | Delete
* @since 5.8.0
[2049] Fix | Delete
*
[2050] Fix | Delete
* @global array $wp_registered_widget_controls The registered widget controls.
[2051] Fix | Delete
*
[2052] Fix | Delete
* @param string $id Widget ID.
[2053] Fix | Delete
* @return string|null
[2054] Fix | Delete
*/
[2055] Fix | Delete
function wp_render_widget_control( $id ) {
[2056] Fix | Delete
global $wp_registered_widget_controls;
[2057] Fix | Delete
[2058] Fix | Delete
if ( ! isset( $wp_registered_widget_controls[ $id ]['callback'] ) ) {
[2059] Fix | Delete
return null;
[2060] Fix | Delete
}
[2061] Fix | Delete
[2062] Fix | Delete
$callback = $wp_registered_widget_controls[ $id ]['callback'];
[2063] Fix | Delete
$params = $wp_registered_widget_controls[ $id ]['params'];
[2064] Fix | Delete
[2065] Fix | Delete
ob_start();
[2066] Fix | Delete
[2067] Fix | Delete
if ( is_callable( $callback ) ) {
[2068] Fix | Delete
call_user_func_array( $callback, $params );
[2069] Fix | Delete
}
[2070] Fix | Delete
[2071] Fix | Delete
return ob_get_clean();
[2072] Fix | Delete
}
[2073] Fix | Delete
[2074] Fix | Delete
/**
[2075] Fix | Delete
* Displays a _doing_it_wrong() message for conflicting widget editor scripts.
[2076] Fix | Delete
*
[2077] Fix | Delete
* The 'wp-editor' script module is exposed as window.wp.editor. This overrides
[2078] Fix | Delete
* the legacy TinyMCE editor module which is required by the widgets editor.
[2079] Fix | Delete
* Because of that conflict, these two shouldn't be enqueued together.
[2080] Fix | Delete
* See https://core.trac.wordpress.org/ticket/53569.
[2081] Fix | Delete
*
[2082] Fix | Delete
* There is also another conflict related to styles where the block widgets
[2083] Fix | Delete
* editor is hidden if a block enqueues 'wp-edit-post' stylesheet.
[2084] Fix | Delete
* See https://core.trac.wordpress.org/ticket/53569.
[2085] Fix | Delete
*
[2086] Fix | Delete
* @since 5.8.0
[2087] Fix | Delete
* @access private
[2088] Fix | Delete
*
[2089] Fix | Delete
* @global WP_Scripts $wp_scripts
[2090] Fix | Delete
* @global WP_Styles $wp_styles
[2091] Fix | Delete
*/
[2092] Fix | Delete
function wp_check_widget_editor_deps() {
[2093] Fix | Delete
global $wp_scripts, $wp_styles;
[2094] Fix | Delete
[2095] Fix | Delete
if (
[2096] Fix | Delete
$wp_scripts->query( 'wp-edit-widgets', 'enqueued' ) ||
[2097] Fix | Delete
$wp_scripts->query( 'wp-customize-widgets', 'enqueued' )
[2098] Fix | Delete
) {
[2099] Fix | Delete
if ( $wp_scripts->query( 'wp-editor', 'enqueued' ) ) {
[2100] Fix | Delete
_doing_it_wrong(
[2101] Fix | Delete
'wp_enqueue_script()',
[2102] Fix | Delete
sprintf(
[2103] Fix | Delete
/* translators: 1: 'wp-editor', 2: 'wp-edit-widgets', 3: 'wp-customize-widgets'. */
[2104] Fix | Delete
__( '"%1$s" script should not be enqueued together with the new widgets editor (%2$s or %3$s).' ),
[2105] Fix | Delete
'wp-editor',
[2106] Fix | Delete
'wp-edit-widgets',
[2107] Fix | Delete
'wp-customize-widgets'
[2108] Fix | Delete
),
[2109] Fix | Delete
'5.8.0'
[2110] Fix | Delete
);
[2111] Fix | Delete
}
[2112] Fix | Delete
if ( $wp_styles->query( 'wp-edit-post', 'enqueued' ) ) {
[2113] Fix | Delete
_doing_it_wrong(
[2114] Fix | Delete
'wp_enqueue_style()',
[2115] Fix | Delete
sprintf(
[2116] Fix | Delete
/* translators: 1: 'wp-edit-post', 2: 'wp-edit-widgets', 3: 'wp-customize-widgets'. */
[2117] Fix | Delete
__( '"%1$s" style should not be enqueued together with the new widgets editor (%2$s or %3$s).' ),
[2118] Fix | Delete
'wp-edit-post',
[2119] Fix | Delete
'wp-edit-widgets',
[2120] Fix | Delete
'wp-customize-widgets'
[2121] Fix | Delete
),
[2122] Fix | Delete
'5.8.0'
[2123] Fix | Delete
);
[2124] Fix | Delete
}
[2125] Fix | Delete
}
[2126] Fix | Delete
}
[2127] Fix | Delete
[2128] Fix | Delete
/**
[2129] Fix | Delete
* Registers the previous theme's sidebars for the block themes.
[2130] Fix | Delete
*
[2131] Fix | Delete
* @since 6.2.0
[2132] Fix | Delete
* @access private
[2133] Fix | Delete
*
[2134] Fix | Delete
* @global array $wp_registered_sidebars The registered sidebars.
[2135] Fix | Delete
*/
[2136] Fix | Delete
function _wp_block_theme_register_classic_sidebars() {
[2137] Fix | Delete
global $wp_registered_sidebars;
[2138] Fix | Delete
[2139] Fix | Delete
if ( ! wp_is_block_theme() ) {
[2140] Fix | Delete
return;
[2141] Fix | Delete
}
[2142] Fix | Delete
[2143] Fix | Delete
$classic_sidebars = get_theme_mod( 'wp_classic_sidebars' );
[2144] Fix | Delete
if ( empty( $classic_sidebars ) ) {
[2145] Fix | Delete
return;
[2146] Fix | Delete
}
[2147] Fix | Delete
[2148] Fix | Delete
// Don't use `register_sidebar` since it will enable the `widgets` support for a theme.
[2149] Fix | Delete
foreach ( $classic_sidebars as $sidebar ) {
[2150] Fix | Delete
$wp_registered_sidebars[ $sidebar['id'] ] = $sidebar;
[2151] Fix | Delete
}
[2152] Fix | Delete
}
[2153] Fix | Delete
[2154] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function