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
File: user-new.php
echo '<h2 id="create-new-user">' . __( 'Add New User' ) . '</h2>';
[500] Fix | Delete
}
[501] Fix | Delete
?>
[502] Fix | Delete
<p><?php _e( 'Create a brand new user and add them to this site.' ); ?></p>
[503] Fix | Delete
<form method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"
[504] Fix | Delete
<?php
[505] Fix | Delete
/** This action is documented in wp-admin/user-new.php */
[506] Fix | Delete
do_action( 'user_new_form_tag' );
[507] Fix | Delete
?>
[508] Fix | Delete
>
[509] Fix | Delete
<input name="action" type="hidden" value="createuser" />
[510] Fix | Delete
<?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ); ?>
[511] Fix | Delete
<?php
[512] Fix | Delete
// Load up the passed data, else set to a default.
[513] Fix | Delete
$creating = isset( $_POST['createuser'] );
[514] Fix | Delete
[515] Fix | Delete
$new_user_login = $creating && isset( $_POST['user_login'] ) ? wp_unslash( $_POST['user_login'] ) : '';
[516] Fix | Delete
$new_user_firstname = $creating && isset( $_POST['first_name'] ) ? wp_unslash( $_POST['first_name'] ) : '';
[517] Fix | Delete
$new_user_lastname = $creating && isset( $_POST['last_name'] ) ? wp_unslash( $_POST['last_name'] ) : '';
[518] Fix | Delete
$new_user_email = $creating && isset( $_POST['email'] ) ? wp_unslash( $_POST['email'] ) : '';
[519] Fix | Delete
$new_user_uri = $creating && isset( $_POST['url'] ) ? wp_unslash( $_POST['url'] ) : '';
[520] Fix | Delete
$new_user_role = $creating && isset( $_POST['role'] ) ? wp_unslash( $_POST['role'] ) : '';
[521] Fix | Delete
$new_user_send_notification = $creating && ! isset( $_POST['send_user_notification'] ) ? false : true;
[522] Fix | Delete
$new_user_ignore_pass = $creating && isset( $_POST['noconfirmation'] ) ? wp_unslash( $_POST['noconfirmation'] ) : '';
[523] Fix | Delete
[524] Fix | Delete
?>
[525] Fix | Delete
<table class="form-table" role="presentation">
[526] Fix | Delete
<tr class="form-field form-required">
[527] Fix | Delete
<th scope="row"><label for="user_login"><?php _e( 'Username' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
[528] Fix | Delete
<td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" autocomplete="off" maxlength="60" /></td>
[529] Fix | Delete
</tr>
[530] Fix | Delete
<tr class="form-field form-required">
[531] Fix | Delete
<th scope="row"><label for="email"><?php _e( 'Email' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
[532] Fix | Delete
<td><input name="email" type="email" id="email" value="<?php echo esc_attr( $new_user_email ); ?>" /></td>
[533] Fix | Delete
</tr>
[534] Fix | Delete
<?php if ( ! is_multisite() ) { ?>
[535] Fix | Delete
<tr class="form-field">
[536] Fix | Delete
<th scope="row"><label for="first_name"><?php _e( 'First Name' ); ?> </label></th>
[537] Fix | Delete
<td><input name="first_name" type="text" id="first_name" value="<?php echo esc_attr( $new_user_firstname ); ?>" /></td>
[538] Fix | Delete
</tr>
[539] Fix | Delete
<tr class="form-field">
[540] Fix | Delete
<th scope="row"><label for="last_name"><?php _e( 'Last Name' ); ?> </label></th>
[541] Fix | Delete
<td><input name="last_name" type="text" id="last_name" value="<?php echo esc_attr( $new_user_lastname ); ?>" /></td>
[542] Fix | Delete
</tr>
[543] Fix | Delete
<tr class="form-field">
[544] Fix | Delete
<th scope="row"><label for="url"><?php _e( 'Website' ); ?></label></th>
[545] Fix | Delete
<td><input name="url" type="url" id="url" class="code" value="<?php echo esc_attr( $new_user_uri ); ?>" /></td>
[546] Fix | Delete
</tr>
[547] Fix | Delete
<?php
[548] Fix | Delete
$languages = get_available_languages();
[549] Fix | Delete
if ( $languages ) :
[550] Fix | Delete
?>
[551] Fix | Delete
<tr class="form-field user-language-wrap">
[552] Fix | Delete
<th scope="row">
[553] Fix | Delete
<label for="locale">
[554] Fix | Delete
<?php /* translators: The user language selection field label. */ ?>
[555] Fix | Delete
<?php _e( 'Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span>
[556] Fix | Delete
</label>
[557] Fix | Delete
</th>
[558] Fix | Delete
<td>
[559] Fix | Delete
<?php
[560] Fix | Delete
wp_dropdown_languages(
[561] Fix | Delete
array(
[562] Fix | Delete
'name' => 'locale',
[563] Fix | Delete
'id' => 'locale',
[564] Fix | Delete
'selected' => 'site-default',
[565] Fix | Delete
'languages' => $languages,
[566] Fix | Delete
'show_available_translations' => false,
[567] Fix | Delete
'show_option_site_default' => true,
[568] Fix | Delete
)
[569] Fix | Delete
);
[570] Fix | Delete
?>
[571] Fix | Delete
</td>
[572] Fix | Delete
</tr>
[573] Fix | Delete
<?php endif; ?>
[574] Fix | Delete
<tr class="form-field form-required user-pass1-wrap">
[575] Fix | Delete
<th scope="row">
[576] Fix | Delete
<label for="pass1">
[577] Fix | Delete
<?php _e( 'Password' ); ?>
[578] Fix | Delete
<span class="description hide-if-js"><?php _e( '(required)' ); ?></span>
[579] Fix | Delete
</label>
[580] Fix | Delete
</th>
[581] Fix | Delete
<td>
[582] Fix | Delete
<input type="hidden" value=" " /><!-- #24364 workaround -->
[583] Fix | Delete
<button type="button" class="button wp-generate-pw hide-if-no-js"><?php _e( 'Generate password' ); ?></button>
[584] Fix | Delete
<div class="wp-pwd">
[585] Fix | Delete
<?php $initial_password = wp_generate_password( 24 ); ?>
[586] Fix | Delete
<div class="password-input-wrapper">
[587] Fix | Delete
<input type="password" name="pass1" id="pass1" class="regular-text" autocomplete="new-password" spellcheck="false" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" aria-describedby="pass-strength-result" />
[588] Fix | Delete
<div style="display:none" id="pass-strength-result" aria-live="polite"></div>
[589] Fix | Delete
</div>
[590] Fix | Delete
<button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
[591] Fix | Delete
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
[592] Fix | Delete
<span class="text"><?php _e( 'Hide' ); ?></span>
[593] Fix | Delete
</button>
[594] Fix | Delete
</div>
[595] Fix | Delete
</td>
[596] Fix | Delete
</tr>
[597] Fix | Delete
<tr class="form-field form-required user-pass2-wrap hide-if-js">
[598] Fix | Delete
<th scope="row"><label for="pass2"><?php _e( 'Repeat Password' ); ?> <span class="description"><?php _e( '(required)' ); ?></span></label></th>
[599] Fix | Delete
<td>
[600] Fix | Delete
<input type="password" name="pass2" id="pass2" autocomplete="new-password" spellcheck="false" aria-describedby="pass2-desc" />
[601] Fix | Delete
<p class="description" id="pass2-desc"><?php _e( 'Type the password again.' ); ?></p>
[602] Fix | Delete
</td>
[603] Fix | Delete
</tr>
[604] Fix | Delete
<tr class="pw-weak">
[605] Fix | Delete
<th><?php _e( 'Confirm Password' ); ?></th>
[606] Fix | Delete
<td>
[607] Fix | Delete
<label>
[608] Fix | Delete
<input type="checkbox" name="pw_weak" class="pw-checkbox" />
[609] Fix | Delete
<?php _e( 'Confirm use of weak password' ); ?>
[610] Fix | Delete
</label>
[611] Fix | Delete
</td>
[612] Fix | Delete
</tr>
[613] Fix | Delete
<tr>
[614] Fix | Delete
<th scope="row"><?php _e( 'Send User Notification' ); ?></th>
[615] Fix | Delete
<td>
[616] Fix | Delete
<input type="checkbox" name="send_user_notification" id="send_user_notification" value="1" <?php checked( $new_user_send_notification ); ?> />
[617] Fix | Delete
<label for="send_user_notification"><?php _e( 'Send the new user an email about their account' ); ?></label>
[618] Fix | Delete
</td>
[619] Fix | Delete
</tr>
[620] Fix | Delete
<?php } // End if ! is_multisite(). ?>
[621] Fix | Delete
<?php if ( current_user_can( 'promote_users' ) ) { ?>
[622] Fix | Delete
<tr class="form-field">
[623] Fix | Delete
<th scope="row"><label for="role"><?php _e( 'Role' ); ?></label></th>
[624] Fix | Delete
<td><select name="role" id="role">
[625] Fix | Delete
<?php
[626] Fix | Delete
if ( ! $new_user_role ) {
[627] Fix | Delete
$new_user_role = get_option( 'default_role' );
[628] Fix | Delete
}
[629] Fix | Delete
wp_dropdown_roles( $new_user_role );
[630] Fix | Delete
?>
[631] Fix | Delete
</select>
[632] Fix | Delete
</td>
[633] Fix | Delete
</tr>
[634] Fix | Delete
<?php } ?>
[635] Fix | Delete
<?php if ( is_multisite() && current_user_can( 'manage_network_users' ) ) { ?>
[636] Fix | Delete
<tr>
[637] Fix | Delete
<th scope="row"><?php _e( 'Skip Confirmation Email' ); ?></th>
[638] Fix | Delete
<td>
[639] Fix | Delete
<input type="checkbox" name="noconfirmation" id="noconfirmation" value="1" <?php checked( $new_user_ignore_pass ); ?> />
[640] Fix | Delete
<label for="noconfirmation"><?php _e( 'Add the user without sending an email that requires their confirmation' ); ?></label>
[641] Fix | Delete
</td>
[642] Fix | Delete
</tr>
[643] Fix | Delete
<?php } ?>
[644] Fix | Delete
</table>
[645] Fix | Delete
[646] Fix | Delete
<?php
[647] Fix | Delete
/** This action is documented in wp-admin/user-new.php */
[648] Fix | Delete
do_action( 'user_new_form', 'add-new-user' );
[649] Fix | Delete
?>
[650] Fix | Delete
[651] Fix | Delete
<?php submit_button( __( 'Add New User' ), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?>
[652] Fix | Delete
[653] Fix | Delete
</form>
[654] Fix | Delete
<?php } // End if current_user_can( 'create_users' ). ?>
[655] Fix | Delete
</div>
[656] Fix | Delete
<?php
[657] Fix | Delete
require_once ABSPATH . 'wp-admin/admin-footer.php';
[658] Fix | Delete
[659] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function