Permalink
Browse files

adding docs and i18n, because - why not

  • Loading branch information...
1 parent e94717c commit 4ec5e9a02866a87e6ef2408e0f173762c0d2877b @alexkingorg committed Sep 4, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 redacted.php
View
@@ -6,11 +6,13 @@
*/
function akv3_shortcode_redacted($atts, $content) {
+// allows for styling as desired in the single post view
if (is_single()) {
- $output = '<span class="redacted">REDACTED</span>';
+ $output = '<span class="redacted">'.__('REDACTED', 'ak-redacted').'</span>';
}
+// handles situations where tags are stripped (feeds, excerpts, etc.)
else {
- $output = '[REDACTED]';
+ $output = __('[REDACTED]', 'ak-redacted');
}
return $output;
}

0 comments on commit 4ec5e9a

Please sign in to comment.