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
Add script enqueue que #2094
Add script enqueue que #2094
Commits on May 26, 2016
-
Fixes debug notices related to 'sizes' not being set on attach metadata
The 'sizes' parameter in the $metadata array passed through the 'wp_generate_attachment_metadata' is not guaranteed to be there, and therefore can cause the following notices/warnings: - PHP Notice: Undefined index: sizes in .../wp-e-commerce/wpsc-components/theme-engine-v2/helpers/template-engine.php on line 481 - PHP Warning: array_key_exists() expects parameter 2 to be array, null given in .../wp-e-commerce/wpsc-components/theme-engine-v2/helpers/template-engine.php on line 481
Configuration menu - View commit details
-
Copy full SHA for 194bb0f - Browse repository at this point
Copy the full SHA 194bb0fView commit details -
Update WPSC_Template_Engine to handle registering enqueued scripts.
Because of the output buffering, there are many cases where naked calls to wp_enqueue_script will not work as it happens to early. This allows a CRUD interface for dealing with those scripts.
Configuration menu - View commit details
-
Copy full SHA for ab72c7d - Browse repository at this point
Copy the full SHA ab72c7dView commit details -
Update js.php to use wpec versions of wp_enqueue_script/localize_script
As per the previous commit, we need a way to enqueue scripts before they are registered. This allows us to do so as well as provide an interface for localizing variables within the WPSC namespace. Also includes a bit of cleanup in copy-billing.js
Configuration menu - View commit details
-
Copy full SHA for 2c44b28 - Browse repository at this point
Copy the full SHA 2c44b28View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcc1124 - Browse repository at this point
Copy the full SHA dcc1124View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e8653a - Browse repository at this point
Copy the full SHA 6e8653aView commit details -
Make sure localized vars don't break the WPSC namespace. (and our code)
Serializes, ensures sane length and sanitizes.
Configuration menu - View commit details
-
Copy full SHA for a98bedd - Browse repository at this point
Copy the full SHA a98beddView commit details -
Configuration menu - View commit details
-
Copy full SHA for b96b296 - Browse repository at this point
Copy the full SHA b96b296View commit details -
Configuration menu - View commit details
-
Copy full SHA for d97520b - Browse repository at this point
Copy the full SHA d97520bView commit details