Version Description
Fix initial DB table creation Fix translations for strings with no domain
Download this release
Release Info
Developer | leewillis77 |
Plugin | Say what? |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- readme.txt +6 -2
- say-what-frontend.php +1 -1
- say-what.php +2 -2
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: leewillis77
|
|
3 |
Donate link: http://www.leewillis.co.uk/wordpress-plugins/?utm_source=wordpress&utm_medium=www&utm_campaign=say-what
|
4 |
Tags: string, change, translation
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.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!
|
@@ -38,6 +38,10 @@ You can either have a guess, or checkout the plugin in question's source code, t
|
|
38 |
|
39 |
== Changelog ==
|
40 |
|
|
|
|
|
|
|
|
|
41 |
= 1.0 =
|
42 |
Allow strings with context to be replaced
|
43 |
|
3 |
Donate link: http://www.leewillis.co.uk/wordpress-plugins/?utm_source=wordpress&utm_medium=www&utm_campaign=say-what
|
4 |
Tags: string, change, translation
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 4.0
|
7 |
+
Stable tag: 1.0.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!
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 1.0.1 =
|
42 |
+
Fix initial DB table creation
|
43 |
+
Fix translations for strings with no domain
|
44 |
+
|
45 |
= 1.0 =
|
46 |
Allow strings with context to be replaced
|
47 |
|
say-what-frontend.php
CHANGED
@@ -16,7 +16,7 @@ class say_what_frontend {
|
|
16 |
function __construct( $settings ) {
|
17 |
foreach ( $settings->replacements as $key => $value ) {
|
18 |
if ( empty ( $value['domain'] ) )
|
19 |
-
$value['domain'] = '
|
20 |
if ( empty ( $value['context'] ) )
|
21 |
$value['context'] = 'sw-default-context';
|
22 |
$this->replacements[$value['domain']][$value['orig_string']][$value['context']] = $value['replacement_string'];
|
16 |
function __construct( $settings ) {
|
17 |
foreach ( $settings->replacements as $key => $value ) {
|
18 |
if ( empty ( $value['domain'] ) )
|
19 |
+
$value['domain'] = 'default';
|
20 |
if ( empty ( $value['context'] ) )
|
21 |
$value['context'] = 'sw-default-context';
|
22 |
$this->replacements[$value['domain']][$value['orig_string']][$value['context']] = $value['replacement_string'];
|
say-what.php
CHANGED
@@ -4,7 +4,7 @@
|
|
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.0
|
8 |
Author: Lee Willis
|
9 |
Author URI: http://www.leewillis.co.uk/
|
10 |
*/
|
@@ -129,7 +129,7 @@ function say_what_install() {
|
|
129 |
`string_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
130 |
`orig_string` text NOT NULL,
|
131 |
`domain` varchar(255),
|
132 |
-
`replacement_string` text
|
133 |
`context` text
|
134 |
)";
|
135 |
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
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.0.1
|
8 |
Author: Lee Willis
|
9 |
Author URI: http://www.leewillis.co.uk/
|
10 |
*/
|
129 |
`string_id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
130 |
`orig_string` text NOT NULL,
|
131 |
`domain` varchar(255),
|
132 |
+
`replacement_string` text,
|
133 |
`context` text
|
134 |
)";
|
135 |
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|