: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* "Revisions are limited" notice in the Form Builder Revisions panel.
* @var int $revisions_to_keep How many revisions are kept.
if ( ! defined( 'ABSPATH' ) ) {
'https://wpforms.com/docs/how-to-use-form-revisions-in-wpforms/#enable-post-revisions',
'Revisions Limited Notice'
<div class='wpforms-revisions-notice wpforms-revisions-notice-warning'>
<h2><?php esc_html_e( 'Form Revisions Are Limited', 'wpforms-lite' ); ?></h2>
printf( /* translators: %d - maximum number of revisions to keep. */
esc_html__( 'Revisions are enabled, but they’re limited to %d. You can increase this by making a simple change to your WordPress configuration.', 'wpforms-lite' ),
absint( $revisions_to_keep )
<a href="<?php echo esc_url( $url ); ?>" target="_blank" rel="noopener noreferrer" class='button button-primary button-large'>
<?php esc_html_e( 'Learn How', 'wpforms-lite' ); ?>