Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSO: Remove unnecessary styles for nonexistent profile UI #5289

Merged
merged 1 commit into from Oct 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 0 additions & 16 deletions modules/sso.php
Expand Up @@ -29,7 +29,6 @@ private function __construct() {
add_filter( 'jetpack_xmlrpc_methods', array( $this, 'xmlrpc_methods' ) );
add_action( 'init', array( $this, 'maybe_logout_user' ), 5 );
add_action( 'jetpack_modules_loaded', array( $this, 'module_configure_button' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
add_action( 'login_form_logout', array( $this, 'store_wpcom_profile_cookies_on_logout' ) );
add_action( 'wp_login', array( 'Jetpack_SSO', 'clear_wpcom_profile_cookies' ) );
add_action( 'jetpack_unlinked_user', array( $this, 'delete_connection_for_user') );
Expand Down Expand Up @@ -76,7 +75,6 @@ public static function module_configuration_screen() {
<?php
}


/**
* When the default login form is hidden, this method is called on the 'authenticate' filter with a priority of 30.
* This method disables the ability to submit the default login form.
Expand Down Expand Up @@ -114,7 +112,6 @@ public function maybe_logout_user() {
}
}


/**
* Adds additional methods the WordPress xmlrpc API for handling SSO specific features
*
Expand Down Expand Up @@ -168,19 +165,6 @@ public function login_enqueue_scripts() {
wp_enqueue_script( 'jetpack-sso-login', plugins_url( 'modules/sso/jetpack-sso-login.js', JETPACK__PLUGIN_FILE ), array( 'jquery' ), JETPACK__VERSION );
}

/**
* Enqueue styles neceessary for Jetpack SSO on users' profiles
*/
public function admin_enqueue_scripts() {
$screen = get_current_screen();

if ( empty( $screen ) || ! in_array( $screen->base, array( 'edit-user', 'profile' ) ) ) {
return;
}

wp_enqueue_style( 'jetpack-sso-profile', plugins_url( 'modules/sso/jetpack-sso-profile.css', JETPACK__PLUGIN_FILE ), array( 'genericons' ), JETPACK__VERSION );
}

/**
* Adds Jetpack SSO classes to login body
*
Expand Down
72 changes: 0 additions & 72 deletions modules/sso/jetpack-sso-profile.css

This file was deleted.