Created
April 12, 2013 20:40
-
-
Save mallorydxw/5374969 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From d0d0bf15033c2567062c8900e0e4ef13953f2e53 Mon Sep 17 00:00:00 2001 | |
From: Tom Adams <tom@dxw.com> | |
Date: Fri, 12 Apr 2013 16:38:34 -0400 | |
Subject: [PATCH] Change gettext usage | |
--- | |
classes/class-s2-core.php | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/classes/class-s2-core.php b/classes/class-s2-core.php | |
index 0a4a278..7d8f073 100755 | |
--- a/classes/class-s2-core.php | |
+++ b/classes/class-s2-core.php | |
@@ -16,9 +16,9 @@ class s2class { | |
function load_strings() { | |
// adjust the output of Subscribe2 here | |
- $this->please_log_in = "<p class=\"s2_message\">" . __('To manage your subscription options please', 'subscribe2') . " <a href=\"" . get_option('siteurl') . "/wp-login.php\">" . __('login', 'subscribe2') . "</a>.</p>"; | |
+ $this->please_log_in = "<p class=\"s2_message\">" . sprintf(__('To manage your subscription options please <a href="%1$s">login</a>.', 'subscribe2'), get_option('siteurl') . '/wp-login.php') . "</p>"; | |
- $this->profile = "<p class=\"s2_message\">" . __('You may manage your subscription options from your', 'subscribe2') . " <a href=\"" . get_option('siteurl') . "/wp-admin/admin.php?page=s2\">" . __('profile', 'subscribe2') . "</a>.</p>"; | |
+ $this->profile = "<p class=\"s2_message\">" . sprintf(__('You may manage your subscription options from your <a href="%1$s">profile</a>.', 'subscribe2'), get_option('siteurl') . "/wp-admin/admin.php?page=s2") . "</p>"; | |
if ( $this->s2_mu === true ) { | |
global $blog_id; | |
$user_ID = get_current_user_id(); | |
-- | |
1.8.2.1.342.gfa7285d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment