Instructions on applying the feed patch for WET-BOEW and related themes

This patch updates the WET feed plugin to read JSON ATOM like feed instead of reading jsonp by default.

Skip to the instructions on how to apply this fix/patch

After this patch is applied following the instructions bellow, it might break existing jsonp WET feed implementations, since it's been changed to JSON format by default. We have estimated that there is only a few or no existing implementation of WET feed plugin that are using jsonp format. Also, it was only documented if someone has reverse engineered the WET feed plugin Javascript code.

This applies for all WET-BOEW implementations, including released themes between version 4.0.21 and 4.0.29. Consult the full list.

This fix formalizes the following versions:

Patch instructions

To apply the patch, you need to update the following files:

Note: Depending on your implementation, you may only have two files to change. For technical reasons, the build of WET-BOEW contains duplicate build files in two different locations.

Steps

  1. Download the .zip file with all the patched WET-BOEW versions.
  2. Extract the .zip file.
  3. Choose the WET-BOEW version applicable to your implementation.
  4. Replace the corresponding wet-boew.js and wet-boew.min.js files.
  5. Modify your page's code to use the JSON Atom-like feed version.

Markup changes

In order to use the JSON Atom-like feeds, you need to specify the URL of the JSON Atom-like feeds.

  1. Add an attribute data-ajax to your feed link.
  2. Set the value to an URL where you can retrieve the JSON Atom-like feed.
  3. Test your page.

The JSON feed specified by the attribute data-ajax would be used before the URL specified in the href attribute.

Code before

<li>
	<a href="demo/manitoba-en.atom.xml">Canada News Centre - Manitoba</a>
</li>

Code after

<li>
	<a data-ajax="demo/manitoba-en.atom.json" href="demo/manitoba-en.atom.xml">Canada News Centre - Manitoba</a>
</li>

Apply the patch manually

  1. Edit the wet-boew.js.
  2. Apply changes as described for feed.js file in the commit 8eb8c25d.
  3. Minify the wet-boew.js and replace the file wet-boew.min.js.
  4. Modify your page's code to use the JSON Atom-like feed version.

Patch the following release:

Date modified: