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
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/password.../includes/views/category
File: view-option.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* PPWP Lite: Category Protection
[2] Fix | Delete
*/
[3] Fix | Delete
?>
[4] Fix | Delete
[5] Fix | Delete
<h2 class="ppw-cat__title"> <?php echo esc_html__('PPWP Lite: Category Protection',PPW_Constants::DOMAIN);?></h2>
[6] Fix | Delete
<form method="post" id="ppwp_protect_category_form" class="ppw-cat__form">
[7] Fix | Delete
<input type="hidden" id="ppw_category_form_nonce" value="<?php echo esc_attr( wp_create_nonce(PPW_Constants::GENERAL_FORM_NONCE) ); ?>" />
[8] Fix | Delete
<div class="form__option-wrapper">
[9] Fix | Delete
<span class="form__option-switch-btn">
[10] Fix | Delete
<label class="pda_switch ppw-switch__wrapper" for="ppwp_is_protect_category">
[11] Fix | Delete
<input type="checkbox" id="ppwp_is_protect_category" <?php echo $is_protect ? 'checked' : '' ?> />
[12] Fix | Delete
<span class="pda-slider round ppw-switch--btn"></span>
[13] Fix | Delete
</label>
[14] Fix | Delete
</span>
[15] Fix | Delete
<span class="form__option-label">
[16] Fix | Delete
<?php echo esc_html__('Password Protect Categories', PPW_Constants::DOMAIN) ?>
[17] Fix | Delete
</span>
[18] Fix | Delete
</div>
[19] Fix | Delete
<p class="form__desc"><?php echo wp_kses_post( sprintf( '<a target="_blank" rel="noreferrer noopener" href="%1$s">%2$s</a> %3$s <a href="%4$s">%5$s</a>.', 'https://passwordprotectwp.com/docs/password-protect-wordpress-categories/?utm_source=user-website&utm_medium=category-protection&utm_campaign=ppwp-free', __( 'Protect all posts under protected categories', PPW_Constants::DOMAIN ), __( 'with a single password. Customize the password form using', PPW_Constants::DOMAIN ), admin_url( 'customize.php?autofocus[panel]=ppwp' ), __( 'WordPress Customizer', PPW_Constants::DOMAIN ) ) ); ?></p>
[20] Fix | Delete
<p class="form__select-wrapper form__input-wrapper">
[21] Fix | Delete
<label class="form__label form__label-cats" for="ppwp-cat-select"><?php echo esc_html__('Select your private categories', PPW_Constants::DOMAIN) ?></label>
[22] Fix | Delete
<select class="form__select" id="ppwp_protected_categories_selected" multiple="multiple">
[23] Fix | Delete
<?php
[24] Fix | Delete
foreach ($categories as $category) {
[25] Fix | Delete
$selected = in_array($category->term_id, $protected_categories) ? 'selected' : '';
[26] Fix | Delete
echo '<option ' . esc_attr( $selected ) . ' value="' . esc_attr( $category->term_id ) . '">' . esc_html( $category->name ) . '</option>';
[27] Fix | Delete
}
[28] Fix | Delete
?>
[29] Fix | Delete
</select>
[30] Fix | Delete
<div id="ppwp_error_protected_categories_selected" style="display: none; color: red; position: absolute; font-size: 12px;">This field is required.</div>
[31] Fix | Delete
</p>
[32] Fix | Delete
<p class="form__input-wrapper">
[33] Fix | Delete
<label class="form__label form__label__pass" for="ppwp_categories_password"><?php echo esc_html__('Set a password', PPW_Constants::DOMAIN) ?></label>
[34] Fix | Delete
<input class="form__input" id="ppwp_categories_password" type="text" placeholder="Enter a password" value="<?php echo esc_html( $password ) ?>">
[35] Fix | Delete
<div id="ppwp_error_categories_password" style="display: none; color: red; position: absolute; font-size: 12px;">This field is required.</div>
[36] Fix | Delete
</p>
[37] Fix | Delete
<p class="form__btn-wrapper">
[38] Fix | Delete
<input type="submit" name="submit" id="ppwp-submit" class="button button-primary" value="Save Changes">
[39] Fix | Delete
</p>
[40] Fix | Delete
</form>
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function