summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/post-by-email.php')
-rw-r--r--plugins/jetpack/modules/post-by-email.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/jetpack/modules/post-by-email.php b/plugins/jetpack/modules/post-by-email.php
index 41e19397..2184cefb 100644
--- a/plugins/jetpack/modules/post-by-email.php
+++ b/plugins/jetpack/modules/post-by-email.php
@@ -2,11 +2,12 @@
/**
* Module Name: Post by Email
- * Module Description: Publish posts to your blog directly from your personal email account.
+ * Module Description: Publish posts by email, using any device and email client.
* First Introduced: 2.0
- * Sort Order: 4
+ * Sort Order: 14
* Requires Connection: Yes
* Auto Activate: Yes
+ * Module Tags: Writing
*/
add_action( 'jetpack_modules_loaded', array( 'Jetpack_Post_By_Email', 'init' ) );
@@ -41,7 +42,7 @@ class Jetpack_Post_By_Email {
add_action( 'init', array( &$this, 'action_init' ) );
}
- function module_toggle() {
+ static function module_toggle() {
$jetpack = Jetpack::init();
$jetpack->sync->register( 'noop' );
}
@@ -66,7 +67,9 @@ class Jetpack_Post_By_Email {
function profile_scripts() {
wp_enqueue_script( 'post-by-email', plugins_url( 'post-by-email/post-by-email.js', __FILE__ ), array( 'jquery' ) );
wp_enqueue_style( 'post-by-email', plugins_url( 'post-by-email/post-by-email.css', __FILE__ ) );
- Jetpack::init()->admin_styles();
+ wp_style_add_data( 'post-by-email', 'jetpack-inline', true );
+ // Do we really need `admin_styles`? With the new admin UI, it's breaking some bits.
+ // Jetpack::init()->admin_styles();
}
function check_user_connection() {