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.../httpdocs/wp-admin/includes
File: ms.php
return true;
[1000] Fix | Delete
}
[1001] Fix | Delete
[1002] Fix | Delete
/**
[1003] Fix | Delete
* Prints JavaScript in the header on the Network Settings screen.
[1004] Fix | Delete
*
[1005] Fix | Delete
* @since 4.1.0
[1006] Fix | Delete
*/
[1007] Fix | Delete
function network_settings_add_js() {
[1008] Fix | Delete
?>
[1009] Fix | Delete
<script type="text/javascript">
[1010] Fix | Delete
jQuery( function($) {
[1011] Fix | Delete
var languageSelect = $( '#WPLANG' );
[1012] Fix | Delete
$( 'form' ).on( 'submit', function() {
[1013] Fix | Delete
/*
[1014] Fix | Delete
* Don't show a spinner for English and installed languages,
[1015] Fix | Delete
* as there is nothing to download.
[1016] Fix | Delete
*/
[1017] Fix | Delete
if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) {
[1018] Fix | Delete
$( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' );
[1019] Fix | Delete
}
[1020] Fix | Delete
});
[1021] Fix | Delete
} );
[1022] Fix | Delete
</script>
[1023] Fix | Delete
<?php
[1024] Fix | Delete
}
[1025] Fix | Delete
[1026] Fix | Delete
/**
[1027] Fix | Delete
* Outputs the HTML for a network's "Edit Site" tabular interface.
[1028] Fix | Delete
*
[1029] Fix | Delete
* @since 4.6.0
[1030] Fix | Delete
*
[1031] Fix | Delete
* @global string $pagenow The filename of the current screen.
[1032] Fix | Delete
*
[1033] Fix | Delete
* @param array $args {
[1034] Fix | Delete
* Optional. Array or string of Query parameters. Default empty array.
[1035] Fix | Delete
*
[1036] Fix | Delete
* @type int $blog_id The site ID. Default is the current site.
[1037] Fix | Delete
* @type array $links The tabs to include with (label|url|cap) keys.
[1038] Fix | Delete
* @type string $selected The ID of the selected link.
[1039] Fix | Delete
* }
[1040] Fix | Delete
*/
[1041] Fix | Delete
function network_edit_site_nav( $args = array() ) {
[1042] Fix | Delete
[1043] Fix | Delete
/**
[1044] Fix | Delete
* Filters the links that appear on site-editing network pages.
[1045] Fix | Delete
*
[1046] Fix | Delete
* Default links: 'site-info', 'site-users', 'site-themes', and 'site-settings'.
[1047] Fix | Delete
*
[1048] Fix | Delete
* @since 4.6.0
[1049] Fix | Delete
*
[1050] Fix | Delete
* @param array $links {
[1051] Fix | Delete
* An array of link data representing individual network admin pages.
[1052] Fix | Delete
*
[1053] Fix | Delete
* @type array $link_slug {
[1054] Fix | Delete
* An array of information about the individual link to a page.
[1055] Fix | Delete
*
[1056] Fix | Delete
* $type string $label Label to use for the link.
[1057] Fix | Delete
* $type string $url URL, relative to `network_admin_url()` to use for the link.
[1058] Fix | Delete
* $type string $cap Capability required to see the link.
[1059] Fix | Delete
* }
[1060] Fix | Delete
* }
[1061] Fix | Delete
*/
[1062] Fix | Delete
$links = apply_filters(
[1063] Fix | Delete
'network_edit_site_nav_links',
[1064] Fix | Delete
array(
[1065] Fix | Delete
'site-info' => array(
[1066] Fix | Delete
'label' => __( 'Info' ),
[1067] Fix | Delete
'url' => 'site-info.php',
[1068] Fix | Delete
'cap' => 'manage_sites',
[1069] Fix | Delete
),
[1070] Fix | Delete
'site-users' => array(
[1071] Fix | Delete
'label' => __( 'Users' ),
[1072] Fix | Delete
'url' => 'site-users.php',
[1073] Fix | Delete
'cap' => 'manage_sites',
[1074] Fix | Delete
),
[1075] Fix | Delete
'site-themes' => array(
[1076] Fix | Delete
'label' => __( 'Themes' ),
[1077] Fix | Delete
'url' => 'site-themes.php',
[1078] Fix | Delete
'cap' => 'manage_sites',
[1079] Fix | Delete
),
[1080] Fix | Delete
'site-settings' => array(
[1081] Fix | Delete
'label' => __( 'Settings' ),
[1082] Fix | Delete
'url' => 'site-settings.php',
[1083] Fix | Delete
'cap' => 'manage_sites',
[1084] Fix | Delete
),
[1085] Fix | Delete
)
[1086] Fix | Delete
);
[1087] Fix | Delete
[1088] Fix | Delete
// Parse arguments.
[1089] Fix | Delete
$parsed_args = wp_parse_args(
[1090] Fix | Delete
$args,
[1091] Fix | Delete
array(
[1092] Fix | Delete
'blog_id' => isset( $_GET['blog_id'] ) ? (int) $_GET['blog_id'] : 0,
[1093] Fix | Delete
'links' => $links,
[1094] Fix | Delete
'selected' => 'site-info',
[1095] Fix | Delete
)
[1096] Fix | Delete
);
[1097] Fix | Delete
[1098] Fix | Delete
// Setup the links array.
[1099] Fix | Delete
$screen_links = array();
[1100] Fix | Delete
[1101] Fix | Delete
// Loop through tabs.
[1102] Fix | Delete
foreach ( $parsed_args['links'] as $link_id => $link ) {
[1103] Fix | Delete
[1104] Fix | Delete
// Skip link if user can't access.
[1105] Fix | Delete
if ( ! current_user_can( $link['cap'], $parsed_args['blog_id'] ) ) {
[1106] Fix | Delete
continue;
[1107] Fix | Delete
}
[1108] Fix | Delete
[1109] Fix | Delete
// Link classes.
[1110] Fix | Delete
$classes = array( 'nav-tab' );
[1111] Fix | Delete
[1112] Fix | Delete
// Aria-current attribute.
[1113] Fix | Delete
$aria_current = '';
[1114] Fix | Delete
[1115] Fix | Delete
// Selected is set by the parent OR assumed by the $pagenow global.
[1116] Fix | Delete
if ( $parsed_args['selected'] === $link_id || $link['url'] === $GLOBALS['pagenow'] ) {
[1117] Fix | Delete
$classes[] = 'nav-tab-active';
[1118] Fix | Delete
$aria_current = ' aria-current="page"';
[1119] Fix | Delete
}
[1120] Fix | Delete
[1121] Fix | Delete
// Escape each class.
[1122] Fix | Delete
$esc_classes = implode( ' ', $classes );
[1123] Fix | Delete
[1124] Fix | Delete
// Get the URL for this link.
[1125] Fix | Delete
$url = add_query_arg( array( 'id' => $parsed_args['blog_id'] ), network_admin_url( $link['url'] ) );
[1126] Fix | Delete
[1127] Fix | Delete
// Add link to nav links.
[1128] Fix | Delete
$screen_links[ $link_id ] = '<a href="' . esc_url( $url ) . '" id="' . esc_attr( $link_id ) . '" class="' . $esc_classes . '"' . $aria_current . '>' . esc_html( $link['label'] ) . '</a>';
[1129] Fix | Delete
}
[1130] Fix | Delete
[1131] Fix | Delete
// All done!
[1132] Fix | Delete
echo '<nav class="nav-tab-wrapper wp-clearfix" aria-label="' . esc_attr__( 'Secondary menu' ) . '">';
[1133] Fix | Delete
echo implode( '', $screen_links );
[1134] Fix | Delete
echo '</nav>';
[1135] Fix | Delete
}
[1136] Fix | Delete
[1137] Fix | Delete
/**
[1138] Fix | Delete
* Returns the arguments for the help tab on the Edit Site screens.
[1139] Fix | Delete
*
[1140] Fix | Delete
* @since 4.9.0
[1141] Fix | Delete
*
[1142] Fix | Delete
* @return array Help tab arguments.
[1143] Fix | Delete
*/
[1144] Fix | Delete
function get_site_screen_help_tab_args() {
[1145] Fix | Delete
return array(
[1146] Fix | Delete
'id' => 'overview',
[1147] Fix | Delete
'title' => __( 'Overview' ),
[1148] Fix | Delete
'content' =>
[1149] Fix | Delete
'<p>' . __( 'The menu is for editing information specific to individual sites, particularly if the admin area of a site is unavailable.' ) . '</p>' .
[1150] Fix | Delete
'<p>' . __( '<strong>Info</strong> &mdash; The site URL is rarely edited as this can cause the site to not work properly. The Registered date and Last Updated date are displayed. Network admins can mark a site as archived, spam, deleted and mature, to remove from public listings or disable.' ) . '</p>' .
[1151] Fix | Delete
'<p>' . __( '<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '</p>' .
[1152] Fix | Delete
'<p>' . sprintf(
[1153] Fix | Delete
/* translators: %s: URL to Network Themes screen. */
[1154] Fix | Delete
__( '<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ),
[1155] Fix | Delete
network_admin_url( 'themes.php' )
[1156] Fix | Delete
) . '</p>' .
[1157] Fix | Delete
'<p>' . __( '<strong>Settings</strong> &mdash; This page shows a list of all settings associated with this site. Some are created by WordPress and others are created by plugins you activate. Note that some fields are grayed out and say Serialized Data. You cannot modify these values due to the way the setting is stored in the database.' ) . '</p>',
[1158] Fix | Delete
);
[1159] Fix | Delete
}
[1160] Fix | Delete
[1161] Fix | Delete
/**
[1162] Fix | Delete
* Returns the content for the help sidebar on the Edit Site screens.
[1163] Fix | Delete
*
[1164] Fix | Delete
* @since 4.9.0
[1165] Fix | Delete
*
[1166] Fix | Delete
* @return string Help sidebar content.
[1167] Fix | Delete
*/
[1168] Fix | Delete
function get_site_screen_help_sidebar_content() {
[1169] Fix | Delete
return '<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
[1170] Fix | Delete
'<p>' . __( '<a href="https://developer.wordpress.org/advanced-administration/multisite/admin/#network-admin-sites-screen">Documentation on Site Management</a>' ) . '</p>' .
[1171] Fix | Delete
'<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support forums</a>' ) . '</p>';
[1172] Fix | Delete
}
[1173] Fix | Delete
[1174] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function