You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wp-wikiLingo.php
+29-7
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ public function can_richedit($bool){
118
118
119
119
functionsettings(){
120
120
//settings_fields('wikiLingo');
121
-
echo'<p>'.__("Select the post types or comments that will support wikiLingo. Comments and bbPress forums can also feature a wikiLingo 'help bar' and previewer. Automatic syntax highlighting can be provided by <a href='http://code.google.com/p/google-code-prettify/' target='_blank'>Prettify</a>.",$this->domain).'</p>';
121
+
echo'<p>'.__("Select the post types or comments that will support wikiLingo",$this->domain).'</p>';
122
122
}
123
123
124
124
functionsettings_posttypes(){
@@ -157,8 +157,32 @@ function get_option( $option ){
157
157
}
158
158
159
159
//For comments & pages
160
-
functionthe_content( $comment ){
161
-
$comment = $this->parser->parse( $comment );
160
+
functionthe_content( $content ){
161
+
$comment = $this->parser->parse( $content );
162
+
163
+
$current_user = wp_get_current_user();
164
+
if (in_array('administrator', $current_user->roles)) {
0 commit comments