Say what? - Version 1.8.1

Version Description

  • Update plugin links, include settings and upgrade link
  • Update documentation about pro features
  • Admin styling fixes

=1.8.0 = * Fix issues where entities could be double encoded on admin screens.

Download this release

Release Info

Developer leewillis77
Plugin Icon 128x128 Say what?
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.1

css/admin.css CHANGED
@@ -19,16 +19,3 @@
19
  margin: auto;
20
  border-radius: 1em;
21
  }
22
- .saywhat-gopro a.button-primary {
23
- background-color: #dd823b;
24
- border-color: #c36922;
25
- -webkit-box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15);
26
- box-shadow: inset 0 1px 0 #e8ac7c, 0 1px 0 rgba(0, 0, 0, 0.15);
27
- }
28
- .saywhat-gopro a.button-primary:hover,
29
- .saywhat-gopro a.button-primary:focus {
30
- background: #d97426;
31
- border-color: #ad5d1e;
32
- -webkit-box-shadow: inset 0 1px 0 #e59e66;
33
- box-shadow: inset 0 1px 0 #e59e66;
34
- }
19
  margin: auto;
20
  border-radius: 1em;
21
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
html/say-what-admin-list.php CHANGED
@@ -8,8 +8,14 @@
8
  ?>
9
  <div class="saywhat-gopro">
10
  <h2>Go pro</h2>
11
- <p><a href="http://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade">Say What? Pro</a> makes it even easier for you to change strings by offering <em><a href="http://plugins.leewillis.co.uk/doc_post/string-discovery/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade" target="_blank">String Discovery</a></em> and autocomplete, making it even easier to find the strings you need to change without diving through code.</p>
 
 
 
 
 
 
12
  <p><strong>Upgrade to the Pro version today, and <em>save 15%</em> with the code <code>WPSAYWHAT</code> at checkout.</strong></p>
13
- <p><a href="http://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade" class="button button-primary">Go Pro now &raquo;</a></p>
14
  </div>
15
- </div>
8
  ?>
9
  <div class="saywhat-gopro">
10
  <h2>Go pro</h2>
11
+ <p><a href="http://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade">Say What? Pro</a> makes it even easier for you to change strings:
12
+ <ul class="ul-disc">
13
+ <li><a href="http://plugins.leewillis.co.uk/doc_post/string-discovery/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade" target="_blank">String Discovery</a></em> and autocomplete - find the strings you need without diving through code.</li>
14
+ <li>Import &amp; export your strings between sites.</li>
15
+ <li>Multi-lingual support - set replacements for multiple languages [beta]</li>
16
+ </ul>
17
+ </p>
18
  <p><strong>Upgrade to the Pro version today, and <em>save 15%</em> with the code <code>WPSAYWHAT</code> at checkout.</strong></p>
19
+ <p><center><a href="http://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade" class="button button-primary">Go Pro now &raquo;</a></center></p>
20
  </div>
21
+ </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.leewillis.co.uk/wordpress-plugins/?utm_source=wordpress&
4
  Tags: string, change, translation
5
  Requires at least: 4.3
6
  Tested up to: 4.7
7
- Stable tag: 1.8.0
8
 
9
  == Description ==
10
  An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code. Simply enter the current string, and what you want to replace it with and the plugin will automatically do the rest!
@@ -51,6 +51,11 @@ See the [GitHub homepage](https://github.com/leewillis77/say-what) for examples.
51
 
52
  == Changelog ==
53
 
 
 
 
 
 
54
  = 1.8.0 =
55
  * Fix issues where entities could be double encoded on admin screens.
56
 
4
  Tags: string, change, translation
5
  Requires at least: 4.3
6
  Tested up to: 4.7
7
+ Stable tag: 1.8.1
8
 
9
  == Description ==
10
  An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code. Simply enter the current string, and what you want to replace it with and the plugin will automatically do the rest!
51
 
52
  == Changelog ==
53
 
54
+ = 1.8.1 =
55
+ * Update plugin links, include settings and upgrade link
56
+ * Update documentation about pro features
57
+ * Admin styling fixes
58
+
59
  = 1.8.0 =
60
  * Fix issues where entities could be double encoded on admin screens.
61
 
say-what-admin.php CHANGED
@@ -18,6 +18,7 @@ class SayWhatAdmin {
18
  $this->settings = $settings;
19
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
20
  add_action( 'admin_init', array( $this, 'admin_init' ) );
 
21
  }
22
 
23
  /**
@@ -32,6 +33,20 @@ class SayWhatAdmin {
32
  }
33
  }
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  /**
36
  * Register the menu item for the admin pages
37
  */
18
  $this->settings = $settings;
19
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
20
  add_action( 'admin_init', array( $this, 'admin_init' ) );
21
+ add_filter( 'plugin_action_links_' . plugin_basename( $this->settings->base_file ), array( $this, 'add_upgrade_link' ) );
22
  }
23
 
24
  /**
33
  }
34
  }
35
 
36
+ /**
37
+ * Add an upgrade link next to the plugin on the Plugins page.
38
+ *
39
+ * @param array $links The existing plugin links.
40
+ * @return array The revised list of plugin links.
41
+ */
42
+ public function add_upgrade_link( $links ) {
43
+ array_unshift(
44
+ $links,
45
+ '<a href="' . admin_url( 'tools.php?page=say_what_admin' ) . '">' . __( 'Settings', 'say_what' ) . '</a>'
46
+ );
47
+ $links[] = '<a href="http://plugins.leewillis.co.uk/downloads/say-what-pro/?utm_source=wporg&amp;utm_medium=plugin&amp;utm_campaign=saywhatproupgrade"><strong>Upgrade to Pro</strong></a>';
48
+ return $links;
49
+ }
50
  /**
51
  * Register the menu item for the admin pages
52
  */
say-what-settings.php CHANGED
@@ -9,6 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
9
  */
10
  class SayWhatSettings {
11
 
 
12
  public $replacements = array();
13
 
14
  /**
@@ -16,8 +17,9 @@ class SayWhatSettings {
16
  *
17
  * Loads the settings from the database.
18
  */
19
- public function __construct() {
20
  global $wpdb, $table_prefix;
 
21
  $current_db_version = get_option( 'say_what_db_version' );
22
  if ( false === $current_db_version ) {
23
  return;
9
  */
10
  class SayWhatSettings {
11
 
12
+ public $base_file = '';
13
  public $replacements = array();
14
 
15
  /**
17
  *
18
  * Loads the settings from the database.
19
  */
20
+ public function __construct( $base_file ) {
21
  global $wpdb, $table_prefix;
22
+ $this->base_file = $base_file;
23
  $current_db_version = get_option( 'say_what_db_version' );
24
  if ( false === $current_db_version ) {
25
  return;
say-what.php CHANGED
@@ -4,9 +4,9 @@
4
  Plugin Name: Say What?
5
  Plugin URI: https://github.com/leewillis77/say-what
6
  Description: An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code
7
- Version: 1.8.0
8
  Author: Lee Willis
9
- Author URI: http://www.leewillis.co.uk/
10
  Text Domain: say_what
11
  */
12
 
@@ -53,7 +53,7 @@ class SayWhat {
53
  */
54
  public function __construct(){
55
  require_once ( 'say-what-settings.php' );
56
- $this->settings_instance = new SayWhatSettings();
57
  if ( is_admin() ) {
58
  require_once ( 'say-what-admin.php' );
59
  $this->admin_instance = new SayWhatAdmin( $this->settings_instance );
4
  Plugin Name: Say What?
5
  Plugin URI: https://github.com/leewillis77/say-what
6
  Description: An easy-to-use plugin that allows you to alter strings on your site without editing WordPress core, or plugin code
7
+ Version: 1.8.1
8
  Author: Lee Willis
9
+ Author URI: http://plugins.leewillis.co.uk/
10
  Text Domain: say_what
11
  */
12
 
53
  */
54
  public function __construct(){
55
  require_once ( 'say-what-settings.php' );
56
+ $this->settings_instance = new SayWhatSettings( __FILE__ );
57
  if ( is_admin() ) {
58
  require_once ( 'say-what-admin.php' );
59
  $this->admin_instance = new SayWhatAdmin( $this->settings_instance );