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

Merging master to keep up to date. #1

Merged
merged 57 commits into from
Mar 31, 2016

Conversation

BE-Webdesign
Copy link
Owner

Merging master to keep up to date.

BE-Webdesign and others added 30 commits February 13, 2016 21:33
This makes it so the post is only added to the live comments widget if
the current view is not a preview solving #26.  Adds isPreview to
o2.options and to pageMeta.  There is a conditional check when adding an
item to the live-comments widget to prevent the post being added in a
preview.
This PR fixes the net::ERR_CONNECTION_CLOSED issue seen in browsers that support HTTP2.
	* Converted the scripts and styles arrays to comma-delimited strings.
	* Updated the poll request handler to explode(',') the styles and strings fields into arrays since that's what the rest of the code expects.
	* This commit is backwards compatible in the sense that if styles and strings are still arrays, then explode()
	  gets skipped and everything else works as expected.
Avoid showing drafts in Live Comments widget during post preview, props BE-Webdesign
Changed the css selector to 'o2-incomplete-' + user.hash instead of 'o2-incomplete-' + user.userLogin, to avoid having to escape the selector.
Changed modelClass to use hash instead of userLogin.
Previously, if you installed O2 by downloading `o2-master.zip` and
installed that zip file, it would go into
`/wp-content/plugins/o2-master/o2.php` and such -- which this method of
specifying the path to assets would fail on.

By being more dynamic as to specifying what folder we're in, we'll be
more reliable however we're used.
__DIR__ is PHP 5.3+ only, and will not function in PHP 5.2

Where possible, swap it out with a `O2__DIR__` constant for less code
churn and easier discoverability later.
Revert "Changed modelClass to use hash instead of userLogin."
This will grant us greater flexibility if we want to move the class to a
subfolder at some point.
This is for consistency with the coding styles in the rest of the
project.
Adds jshint and phplint, as well as some i18n tools.
We can rely on Core's `$wp_locale` global for this info.
@BE-Webdesign BE-Webdesign merged commit 4238261 into BE-Webdesign:master Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants