Skip to content

Conversation

@cojennin
Copy link
Contributor

@cojennin cojennin commented Dec 9, 2019

This is based on work from @justnorris in #487.

Instead of trying to tackle scoping assets across all of Edit Flow at once, we'll create a series of PR's to bring different modules into alignment and then introduce stricter guardrails once all the modules are in better shape.

function enqueue_datepicker_resources() {

// Add the first day of the week as an available variable to wp_head
echo "<script type=\"text/javascript\">var ef_week_first_day=\"" . get_option( 'start_of_week' ) . "\";</script>";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line was making the PHPUnit tests around enqueuing noisy, so moved it to use wp_add_inline_script

@cojennin cojennin force-pushed the scope-module-assets-calendar branch from 123c1fe to 65095fa Compare January 16, 2020 18:36
@WPprodigy
Copy link
Contributor

WPprodigy commented Jan 16, 2020

Let's hold off on this one until we have a good pattern down in #565.

Once the first is merged and a good pattern is setup, the rest can follow suit.

@cojennin
Copy link
Contributor Author

Closing this for now, going to rework based on thoughts in #565 (comment)

@cojennin cojennin closed this Feb 14, 2020
@cojennin cojennin deleted the scope-module-assets-calendar branch April 11, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants