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

Change asset enqueuing #419

Merged
merged 4 commits into from
Apr 5, 2018
Merged

Change asset enqueuing #419

merged 4 commits into from
Apr 5, 2018

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Mar 27, 2018

  • Move asset URLs to constants
  • Combine multiple instances of scripts and styles being enqueued in the admin to one place
  • Combine multiple instances of Lock URLs to one place

@joshcanhelp joshcanhelp added this to the v3-Next milestone Mar 27, 2018
@joshcanhelp joshcanhelp changed the title Change asset enqueing [WIP] Change asset enqueing Mar 28, 2018
}

public function shortcode( $atts ) {
wp_enqueue_script( 'jquery' );

if ( WP_Auth0_Options::Instance()->get('passwordless_enabled') ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to templates/login-form.php


wp_enqueue_script( 'jquery' );

if ( WP_Auth0_Options::Instance()->get('passwordless_enabled') ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to templates/login-form.php


if ( trim( $client_id ) !== '' ) {

if ( WP_Auth0_Options::Instance()->get( 'passwordless_enabled' ) ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to templates/login-form.php

@@ -31,12 +31,6 @@ public function show_error() {

public function render_import_settings_page() {

wp_enqueue_media();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to lib/admin/WP_Auth0_Admin.php

@joshcanhelp joshcanhelp changed the title [WIP] Change asset enqueing Change asset enqueuing Mar 28, 2018
@joshcanhelp joshcanhelp removed the WIP label Mar 28, 2018
Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshcanhelp joshcanhelp merged commit 0039e99 into dev Apr 5, 2018
@joshcanhelp joshcanhelp deleted the change-script-enqueue branch April 5, 2018 17:30
@joshcanhelp joshcanhelp mentioned this pull request Jun 5, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants