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

sync #1

Merged
merged 24 commits into from
Aug 21, 2017
Merged

sync #1

merged 24 commits into from
Aug 21, 2017

Conversation

ybr-nx
Copy link
Owner

@ybr-nx ybr-nx commented Aug 21, 2017

No description provided.

kovshenin and others added 24 commits September 5, 2016 20:39
When a checkbox-type question is saved multiple times, the values
in the database containing an ampersand are converted to & and the
Edit Information UI comparison no longer works. The escaping is a
separate bug, but to fix the UI for existing data let's compare to
an array of escaped values in addition to the ones originally stored.

Fixes #144
This clutters the screen with lots of unnecessary info. If this functionality is desired, it should be implemented in a cleaner and more user-friendly/developer-friendly way.
Not all sites will use the built-in field, and newer ones may not have opened ticket sales yet, so only querying for 50 sites is not enough.
A large attendee list causes a large number of concurrent requests to
be sent from the browser to Gravatar, which bogs down the page loading
performance.

This inserts a placeholder element for all the attendee avatars when
rendering the HTML markup. A jQuery plugin called Appear is then used to
detect when a placeholder element is about to scroll into view, which
triggers an event that replaces the placeholder element with an img tag,
using a JS template. Jetpack's jquery.spin script is used to provide a
visual indicator that an avatar is in the process of loading.

Refs https://meta.trac.wordpress.org/ticket/1760
* Attendees shortcode: Refactor caching of attendees lists

This refactors the way that the shortcode content is generated, splitting the functionality into several smaller methods so that the content can be generated and cached in a separate cronjob as well as when the shortcode callback is fired.

* Clean up indentation and spacing

* Add missing doc blocks to action hooks

* Add note explaining removal of cache backcompat

See #158 (comment)

* Attendees shortcode: More caching improvements
  * Allow outdated cache content to be shown for non-cronjob requests to avoid long page loads for site visitors
  * Run the caching cronjob for archived sites, since the cache can still be invalidated, but at a much longer interval.
In response to error message:

E_WARNING: ..camptix/addons/shortcodes.php:103 - preg_match_all():
Delimiter must not be alphanumeric or backslash
This attempts to resolve the following error:

  PHP Warning: Invalid argument supplied for foreach() in
  /home/wordcamp/public_html/wp-content/plugins/camptix/
  addons/field-twitter.php on line 36

When the shortcode functionality was refactored to change the way it
cached the attendees list content, a regression was introduced because
there were some cases where the `camptix_attendees_shortcode_init`
action was not called during the markup rendering, which caused some
other addon code to throw errors like the above. This ensures the
action is always fired during content rendering.
Note: This was rebased and force-pushed by @iandunn several weeks after the initial push, in order to clean up the commit history.

Previous commit hashes:

8da7b0c v.1.5.1 > New pot + French l10n update
24e63ac Typo
a5dcd2e typo
924e15e more typo
63a5378 This time is my turn to introduce some typos
5ff65cb l10n improvement
82e72ae Typo: missed a plural form
d5eed8f fixing a non sense in original string
0e4f846 Recompile camptix-fr_FR.mo
bf5448f Add support for language packs
d58830d Remove extra text domain logic
Add support for language packs
Locales that have language packs shouldn't have a bundled translation
because it will override the language pack, which is much easier to
keep up to date.

See: https://translate.wordpress.org/projects/wp-plugins/camptix/language-packs
@ybr-nx ybr-nx merged commit c468c08 into ybr-nx:master Aug 21, 2017
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.

7 participants