Skip to content

Commit

Permalink
Tag version 2.1.8-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
agapetry committed Jan 14, 2020
1 parent 83fad72 commit c841b38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ For more details about both the free and pro version, see our <a href="https://p

== Changelog ==

= 2.1.8-dev =
* Lang: Updated language files

= 2.1.7 - 13 Jan 2020 =
* Fixed : Excessive resource usage with some caching solutions
* Fixed : Multisite - Super Administrators without a site role could not access Revision Queue
Expand Down
20 changes: 10 additions & 10 deletions revisionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Maintain published content with teamwork and precision using the Revisions model to submit, approve and schedule changes.
* Author: PublishPress
* Author URI: https://publishpress.com
* Version: 2.1.7
* Version: 2.1.8-beta
* Text Domain: revisionary
* Domain Path: /languages/
* Min WP Version: 4.9.7
Expand Down Expand Up @@ -64,7 +64,7 @@
function($links, $file)
{
if ($file == plugin_basename(__FILE__)) {
$links[]= __('<strong>This plugin can be deleted.</strong>', 'press-permit-core');
$links[]= __('<strong>This plugin can be deleted.</strong>', 'revisionary');
}

return $links;
Expand All @@ -80,9 +80,9 @@ function($links, $file)
add_action('all_admin_notices', function()
{
if ( defined( 'RVY_FOLDER' ) )
$message = sprintf( __( 'Another copy of PublishPress Revisions (or Revisionary) is already activated (version %1$s: "%2$s")', 'rvy' ), RVY_VERSION, RVY_FOLDER );
$message = sprintf( __( 'Another copy of PublishPress Revisions (or Revisionary) is already activated (version %1$s: "%2$s")', 'revisionary' ), RVY_VERSION, RVY_FOLDER );
else
$message = sprintf( __( 'Another copy of PublishPress Revisions (or Revisionary) is already activated (version %1$s)', 'rvy' ), RVY_VERSION );
$message = sprintf( __( 'Another copy of PublishPress Revisions (or Revisionary) is already activated (version %1$s)', 'revisionary' ), RVY_VERSION );

echo "<div id='message' class='notice error' style='color:black'>" . $message . '</div>';
}, 5);
Expand All @@ -96,7 +96,7 @@ function($links, $file)
register_activation_hook(__FILE__, function()
{
// mirror to REVISIONARY_VERSION
update_option('revisionary_last_version', '2.1.7');
update_option('revisionary_last_version', '2.1.8-beta');

// force this timestamp to be regenerated, in case something went wrong before
delete_option( 'rvy_next_rev_publish_gmt' );
Expand Down Expand Up @@ -128,9 +128,9 @@ function()
add_action('all_admin_notices', function()
{
if ( defined( 'RVY_FOLDER' ) )
$message = sprintf( __( 'Another copy of PublishPress Revisions (or Revisionary) is already activated (version %1$s: "%2$s")', 'rvy' ), RVY_VERSION, RVY_FOLDER );
$message = sprintf( __( 'Another copy of PublishPress Revisions (or Revisionary) is already activated (version %1$s: "%2$s")', 'revisionary' ), RVY_VERSION, RVY_FOLDER );
else
$message = sprintf( __( 'Another copy of PublishPress Revisions (or Revisionary) is already activated (version %1$s)', 'rvy' ), RVY_VERSION );
$message = sprintf( __( 'Another copy of PublishPress Revisions (or Revisionary) is already activated (version %1$s)', 'revisionary' ), RVY_VERSION );

echo "<div id='message' class='notice error' style='color:black'>" . $message . '</div>';
}, 5);
Expand All @@ -148,19 +148,19 @@ function()
// Critical errors that prevent initialization
if (version_compare($min_php_version, $php_version, '>')) {
if (is_admin() && current_user_can('activate_plugins')) {
add_action('all_admin_notices', function(){echo "<div id='message' class='notice error'>" . sprintf(__('PublishPress Revisions requires PHP version %s or higher.'), '5.6.20') . "</div>"; });
add_action('all_admin_notices', function(){echo "<div id='message' class='notice error'>" . sprintf(__('PublishPress Revisions requires PHP version %s or higher.', 'revisionary'), '5.6.20') . "</div>"; });
}
return;
}

if (version_compare($wp_version, $min_wp_version, '<')) {
if (is_admin() && current_user_can('activate_plugins')) {
add_action('all_admin_notices', function(){echo "<div id='message' class='notice error'>" . sprintf(__('PublishPress Revisions requires WordPress version %s or higher.'), '4.9.7') . "</div>"; });
add_action('all_admin_notices', function(){echo "<div id='message' class='notice error'>" . sprintf(__('PublishPress Revisions requires WordPress version %s or higher.', 'revisionary'), '4.9.7') . "</div>"; });
}
return;
}

define('REVISIONARY_VERSION', '2.1.7');
define('REVISIONARY_VERSION', '2.1.8-beta');

if ( ! defined( 'RVY_VERSION' ) ) {
define( 'RVY_VERSION', REVISIONARY_VERSION ); // back compat
Expand Down

0 comments on commit c841b38

Please sign in to comment.