';
+ }
}
}
}
@@ -526,6 +532,25 @@ class WhatDidTheySayAdmin {
return $updated;
}
+ /**
+ * Handle resettings what-did-they-say-options.
+ * @param array $info The part of the $_POST array for What Did They Say?!?
+ * @return string|false A string if a message is to be displayed, or false if no message.
+ */
+ function handle_update_core_features($info) {
+ $updated = false;
+ if (current_user_can('manage_options')) {
+ $options = get_option('what-did-they-say-options');
+ foreach (array('automatic_embedding', 'search_integration') as $field) {
+ $options[$field] = isset($info[$field]);
+ }
+ update_option('what-did-they-say-options', $options);
+
+ $updated = __('What Did They Say?!? core options changed.', 'what-did-they-say');
+ }
+ return $updated;
+ }
+
/**
* Read a data file containing all the known languages on Earth.
* The data originally came from http://www.langtag.net/, specifically http://www.langtag.net/registries/lsr-language.txt.
@@ -612,7 +637,7 @@ class WhatDidTheySayAdmin {
if (strpos($pagenow, "post") === 0) {
add_meta_box(
'manage-transcriptions',
- __('Manage Transcriptions', 'what-did-they-say'),
+ __('Manage Transcripts', 'what-did-they-say'),
array(&$this, 'manage_transcriptions_meta_box'),
'post',
'normal',
diff --git a/classes/partials/_introduction.inc b/classes/partials/_introduction.inc
index 5a9151b..aeeb6cc 100644
--- a/classes/partials/_introduction.inc
+++ b/classes/partials/_introduction.inc
@@ -9,23 +9,34 @@
- What Did They Say?!? can attempt to embed excerpts into your posts automatically:', 'what-did-they-say') ?>
-
+ />
+
+
+
+
+
+
+ What Did They Say?!? is set to attempt to embed excerpts into your posts automatically.', 'what-did-they-say') ?>
+
+ What Did They Say?!? will not attempt to embed excerpts into your posts automatically.', 'what-did-they-say') ?>
+
+
-
+
@@ -38,7 +49,32 @@
- What Did They Say?!? will search your transcripts, too.', 'what-did-they-say') ?>
+ What Did They Say?!? can search your transcripts, too.', 'what-did-they-say') ?>
+
+
+
+
+
+ What Did They Say?!? is set to search transcripts when your site is searched.', 'what-did-they-say') ?>
+
+ What Did They Say?!? will not search transcripts when your site is searched.', 'what-did-they-say') ?>
+
+
+
diff --git a/classes/partials/admin.inc b/classes/partials/admin.inc
index 8d40809..a5e13ea 100644
--- a/classes/partials/admin.inc
+++ b/classes/partials/admin.inc
@@ -1,11 +1,11 @@
__('Introduction', 'what-did-they-say'),
- 'capabilities' => __('Capabilities', 'what-did-they-say'),
- 'default-styles' => __('Styles', 'what-did-they-say'),
- 'change-languages' => __('Languages', 'what-did-they-say'),
- 'shortcodes-info' => __('Shortcodes Info', 'what-did-they-say'),
- 'misc-options' => __('Misc. Options', 'what-did-they-say'),
+ 'capabilities' => array(__('Capabilities', 'what-did-they-say'), 'edit_users'),
+ 'default-styles' => array(__('Styles', 'what-did-they-say'), 'edit_themes'),
+ 'change-languages' => array(__('Languages', 'what-did-they-say'), 'change_languages'),
+ 'shortcodes-info' => array(__('Shortcodes Info', 'what-did-they-say'), 'submit_transcriptions'),
+ 'misc-options' => array(__('Misc. Options', 'what-did-they-say'), 'manage_options'),
);
extract($this->plugin_data);
@@ -14,7 +14,17 @@