Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

馃悰 FIX: Move block JS to footer #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

salcode
Copy link

@salcode salcode commented May 29, 2018

Add a version number parameter (an empty string), which allows the
following parameter (true) to be properly interpreted as the
in_footer parameter.

See #65

I'm having trouble using the modified template to generate the new block but I'm certain that is a separate problem in how I'm running my update (see #67). However, if it is easier to reject this PR and make the change yourself, that is no problem.

@riyuk
Copy link

riyuk commented Nov 29, 2018

null seems right for me instead of an empty string.

According to the Code-Docs:

Optional. String specifying script version number, if it has one, which is added to the URL as a query string for cache busting purposes. If version is set to false, a version number is automatically added equal to current installed WordPress version. If set to null, no version is added.

@ahmadawais
Copy link
Owner

@riyuk I will look into it.

@salcode salcode force-pushed the sf/js-ver-number-65 branch 2 times, most recently from 874fb4e to c74b60a Compare November 29, 2018 19:01
Add a version number parameter (null), which allows the
following parameter (`true`) to be properly interpreted as the
`in_footer` parameter.

props to @riyuk for pointing out `null` is the appropriate value, rather
than empty string ("")

See ahmadawais#65
@salcode
Copy link
Author

salcode commented Nov 29, 2018

+1 on null instead of empty string (""). I've updated the PR.

Good catch @riyuk 馃憤

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants