@@ -146,15 +146,28 @@ class WP_Revisions_Control {
*/
publicfunctionsettings_section_intro(){
?>
<p><?php_e('Set the number of revisions to save for each post type listed. To retain all revisions for a given post type, leave the field empty.','wp_revisions_control');?></p>
<p><?php_e("If a post type isn't listed, revisions are not enabled for that post type.",'wp_revisions_control');?></p>
<p><?phpesc_html_e('Set the number of revisions to save for each post type listed. To retain all revisions for a given post type, leave the field empty.','wp_revisions_control');?></p>
<p><?phpesc_html_e('If a post type isn\'t listed, revisions are not enabled for that post type.','wp_revisions_control');?></p>
<?php
// Display a note if the plugin priority is other than the default.
<p><?phpprintf(__("A local change is causing this plugin's functionality to run at a priority other than the default. If you experience difficulties with the plugin, please unhook any functions from the %s filter.",'wp_revisions_control'),'<code>wp_revisions_control_priority</code>');?></p>
'A local change is causing this plugin\'s functionality to run at a priority other than the default. If you experience difficulties with the plugin, please unhook any functions from the %1$s filter.',
'wp_revisions_control'
),
'<code>wp_revisions_control_priority</code>'
);
?>
</p>
<?php
endif;
}
/**
...
...
@@ -257,23 +270,40 @@ class WP_Revisions_Control {
<pclass="button purge"data-postid="<?phpthe_ID();?>"data-nonce="<?phpechoesc_attr(wp_create_nonce($this->settings_section.'_purge'));?>"><?php_e('Purge these revisions','wp_revisions_control');?></p>
<p>
<?phpprintf(__('Limit this post to %s revisions. Leave this field blank for default behavior.','wp_revisions_control'),'<input type="text" name="'.$this->settings_section.'_qty" value="'.$this->get_post_revisions_to_keep($post->ID).'" id="'.$this->settings_section.'_qty" size="2" />');?>
<?php
printf(
/* translators: 1. Text input field. */
esc_html__(
'Limit this post to %1$s revisions. Leave this field blank for default behavior.',