Instant Articles for WP - Version 4.1.1

Version Description

Download this release

Release Info

Developer hchong
Plugin Icon 128x128 Instant Articles for WP
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1.0 to 4.1.1

CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
  ## Change Log
2
 
3
- ### 4.1.0 (2018/07/02 23:16 +00:00)
 
 
 
 
 
4
  - [#937](https://github.com/automattic/facebook-instant-articles-wp/pull/937) Add token-less re-scrape with request signature (@diegoquinteiro)
5
  - [#952](https://github.com/automattic/facebook-instant-articles-wp/pull/952) Updating description for the plugin (@Blakomen)
6
  - [#910](https://github.com/automattic/facebook-instant-articles-wp/pull/910) Add PassThroughRule for Grammarly (@robbiet480)
1
  ## Change Log
2
 
3
+ ### 4.1.1 (2018/07/17 15:45 +00:00)
4
+ - [#962](https://github.com/automattic/facebook-instant-articles-wp/pull/962) Updating description for the plugin on website (@Blakomen)
5
+ - [#1](https://github.com/automattic/facebook-instant-articles-wp/pull/1) Merging into local (@diegoquinteiro, @everton-rosario, @algmelo)
6
+ - [#957](https://github.com/automattic/facebook-instant-articles-wp/pull/957) Delete current transient with autoload=yes. (@everton-rosario, @algmelo)
7
+
8
+ ### 4.1.0 (2018/07/02 23:17 +00:00)
9
  - [#937](https://github.com/automattic/facebook-instant-articles-wp/pull/937) Add token-less re-scrape with request signature (@diegoquinteiro)
10
  - [#952](https://github.com/automattic/facebook-instant-articles-wp/pull/952) Updating description for the plugin (@Blakomen)
11
  - [#910](https://github.com/automattic/facebook-instant-articles-wp/pull/910) Add PassThroughRule for Grammarly (@robbiet480)
embeds.php CHANGED
@@ -68,6 +68,7 @@ function instant_articles_embed_oembed_html( $html, $url, $attr, $post_id ) {
68
 
69
  if ( $provider_name ) {
70
  $html = instant_articles_embed_get_html( $provider_name, $html, $url, $attr, $post_id );
 
71
  }
72
 
73
  return $html;
68
 
69
  if ( $provider_name ) {
70
  $html = instant_articles_embed_get_html( $provider_name, $html, $url, $attr, $post_id );
71
+ delete_transient( $cache_key );
72
  }
73
 
74
  return $html;
facebook-instant-articles.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: Add support for Instant Articles for Facebook to your WordPress site.
5
  * Author: Automattic, Dekode, Facebook
6
  * Author URI: https://vip.wordpress.com/plugins/instant-articles/
7
- * Version: 4.1.0
8
  * Text Domain: instant-articles
9
  * License: GPLv2
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -68,7 +68,7 @@ if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
68
 
69
  defined( 'ABSPATH' ) || die( 'Shame on you' );
70
 
71
- define( 'IA_PLUGIN_VERSION', '4.1.0' );
72
  define( 'IA_PLUGIN_PATH_FULL', __FILE__ );
73
  define( 'IA_PLUGIN_PATH', plugin_basename( __FILE__ ) );
74
  define( 'IA_PLUGIN_FILE_BASENAME', pathinfo( __FILE__, PATHINFO_FILENAME ) );
4
  * Description: Add support for Instant Articles for Facebook to your WordPress site.
5
  * Author: Automattic, Dekode, Facebook
6
  * Author URI: https://vip.wordpress.com/plugins/instant-articles/
7
+ * Version: 4.1.1
8
  * Text Domain: instant-articles
9
  * License: GPLv2
10
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
68
 
69
  defined( 'ABSPATH' ) || die( 'Shame on you' );
70
 
71
+ define( 'IA_PLUGIN_VERSION', '4.1.1' );
72
  define( 'IA_PLUGIN_PATH_FULL', __FILE__ );
73
  define( 'IA_PLUGIN_PATH', plugin_basename( __FILE__ ) );
74
  define( 'IA_PLUGIN_FILE_BASENAME', pathinfo( __FILE__, PATHINFO_FILENAME ) );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: trrine, olethomas, bjornjohansen, dekode, automattic, facebook
3
  Tags: instant articles, facebook, mobile
4
  Requires at least: 4.3
5
  Tested up to: 4.8
6
- Stable tag: 4.1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -19,15 +19,19 @@ A best effort is made to generate valid Instant Article markup from your posts'
19
 
20
  Built-in to the plugin are many [pre-defined transformer rules](https://github.com/Automattic/facebook-instant-articles-wp/blob/master/rules-configuration.json) which aims to cover standard WordPress installations. If your WordPress content contains elements which are not covered by the built-in ruleset, you can define your own additional rules to extend or override the defaults in the Settings of this plugin, under: **Plugin Configuration** > **Publishing Settings** > **Custom transformer rules**.
21
 
22
- = Feed submission to Facebook =
23
 
24
- Facebook has a review process where they verify that all Instant Articles are properly formatted, have content consistency with their mobile web counterparts, and adhere to their community standards and content policies. You will not be able to publish Instant Articles in Facebook until your feed has been approved.
 
 
 
 
25
 
26
  It's important to note that if you use meta fields to add extra text, images or videos to your Posts, Facebook will expect you to add these to your Instant Articles output too. This plugin includes hooks to help you do that.
27
 
28
  [See Facebook's documentation for full details of the submission process.](https://developers.facebook.com/docs/instant-articles)
29
 
30
- Facebook requires a minimum number of articles in your feed before they will review it. Once your feed has been approved, new posts will automatically be taken live on Instant Articles, and existing posts will be taken live once you update them.
31
 
32
  == Installation ==
33
 
@@ -86,7 +90,12 @@ Usually simply visiting the permalinks settings page in the WordPress dashboard
86
  == Changelog ==
87
  ## Change Log
88
 
89
- ### 4.1.0 (2018/07/02 23:16 +00:00)
 
 
 
 
 
90
  - [#937](https://github.com/automattic/facebook-instant-articles-wp/pull/937) Add token-less re-scrape with request signature (@diegoquinteiro)
91
  - [#952](https://github.com/automattic/facebook-instant-articles-wp/pull/952) Updating description for the plugin (@Blakomen)
92
  - [#910](https://github.com/automattic/facebook-instant-articles-wp/pull/910) Add PassThroughRule for Grammarly (@robbiet480)
3
  Tags: instant articles, facebook, mobile
4
  Requires at least: 4.3
5
  Tested up to: 4.8
6
+ Stable tag: 4.1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
19
 
20
  Built-in to the plugin are many [pre-defined transformer rules](https://github.com/Automattic/facebook-instant-articles-wp/blob/master/rules-configuration.json) which aims to cover standard WordPress installations. If your WordPress content contains elements which are not covered by the built-in ruleset, you can define your own additional rules to extend or override the defaults in the Settings of this plugin, under: **Plugin Configuration** > **Publishing Settings** > **Custom transformer rules**.
21
 
22
+ = Access to Instant Articles =
23
 
24
+ The current criteria for access to Instant Articles are:
25
+ * your Facebook Page must have an established presence of at least 90 days
26
+ * your content adheres to the [Instant Article Policies](https://developers.facebook.com/docs/instant-articles/policy/)
27
+
28
+ Before your Instant Articles can be published on Facebook, your feed must undergo an initial review and approval. Facebook requires a minimum number of 10 articles in your feed before being eligible for review. The review process checks that your draft Instant Articles are properly formatted, have content consistency with their mobile web counterparts, and adhere to the [community standards](https://www.facebook.com/communitystandards/) and [content policies](https://www.facebook.com/help/publisher/1348682518563619).
29
 
30
  It's important to note that if you use meta fields to add extra text, images or videos to your Posts, Facebook will expect you to add these to your Instant Articles output too. This plugin includes hooks to help you do that.
31
 
32
  [See Facebook's documentation for full details of the submission process.](https://developers.facebook.com/docs/instant-articles)
33
 
34
+ Once your feed has been approved, new posts will automatically be taken live on Instant Articles, and existing posts will be taken live once you update them. In order to stay in the Instant Articles program, you must remain active by creating new content and maintaining a minimal readership.
35
 
36
  == Installation ==
37
 
90
  == Changelog ==
91
  ## Change Log
92
 
93
+ ### 4.1.1 (2018/07/17 15:45 +00:00)
94
+ - [#962](https://github.com/automattic/facebook-instant-articles-wp/pull/962) Updating description for the plugin on website (@Blakomen)
95
+ - [#1](https://github.com/automattic/facebook-instant-articles-wp/pull/1) Merging into local (@diegoquinteiro, @everton-rosario, @algmelo)
96
+ - [#957](https://github.com/automattic/facebook-instant-articles-wp/pull/957) Delete current transient with autoload=yes. (@everton-rosario, @algmelo)
97
+
98
+ ### 4.1.0 (2018/07/02 23:17 +00:00)
99
  - [#937](https://github.com/automattic/facebook-instant-articles-wp/pull/937) Add token-less re-scrape with request signature (@diegoquinteiro)
100
  - [#952](https://github.com/automattic/facebook-instant-articles-wp/pull/952) Updating description for the plugin (@Blakomen)
101
  - [#910](https://github.com/automattic/facebook-instant-articles-wp/pull/910) Add PassThroughRule for Grammarly (@robbiet480)
release.sh CHANGED
@@ -142,14 +142,14 @@ else
142
  fi
143
 
144
  if ! type "js" > /dev/null; then
145
- error_message "SpiderMonkey interpreter not found, please install SpiderMonkey before continuing: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey"
146
  else
147
  message "Found SpiderMonkey"
148
  fi
149
 
150
 
151
  if ! type "github-changes" > /dev/null; then
152
- error_message "github-changes tool not found. Please run: npm install -g git-changes"
153
  else
154
  message "Found github-changes"
155
  fi
142
  fi
143
 
144
  if ! type "js" > /dev/null; then
145
+ error_message "SpiderMonkey interpreter not found, please install SpiderMonkey before continuing: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey (or with Homebrew)"
146
  else
147
  message "Found SpiderMonkey"
148
  fi
149
 
150
 
151
  if ! type "github-changes" > /dev/null; then
152
+ error_message "github-changes tool not found. Please run: npm install -g github-changes"
153
  else
154
  message "Found github-changes"
155
  fi
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitdd5e535efcefbce2dafa1eb3c9181fcb::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitf357817e391b286c997f3abb9d725c67::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitdd5e535efcefbce2dafa1eb3c9181fcb
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitdd5e535efcefbce2dafa1eb3c9181fcb
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitdd5e535efcefbce2dafa1eb3c9181fcb', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitdd5e535efcefbce2dafa1eb3c9181fcb', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInitdd5e535efcefbce2dafa1eb3c9181fcb::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInitdd5e535efcefbce2dafa1eb3c9181fcb
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInitdd5e535efcefbce2dafa1eb3c9181fcb::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequiredd5e535efcefbce2dafa1eb3c9181fcb($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequiredd5e535efcefbce2dafa1eb3c9181fcb($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitf357817e391b286c997f3abb9d725c67
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitf357817e391b286c997f3abb9d725c67', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitf357817e391b286c997f3abb9d725c67', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInitf357817e391b286c997f3abb9d725c67::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
+ $includeFiles = Composer\Autoload\ComposerStaticInitf357817e391b286c997f3abb9d725c67::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequiref357817e391b286c997f3abb9d725c67($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequiref357817e391b286c997f3abb9d725c67($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitdd5e535efcefbce2dafa1eb3c9181fcb
8
  {
9
  public static $files = array (
10
  'c65d09b6820da036953a371c8c73a9b1' => __DIR__ . '/..' . '/facebook/graph-sdk/src/Facebook/polyfills.php',
@@ -123,9 +123,9 @@ class ComposerStaticInitdd5e535efcefbce2dafa1eb3c9181fcb
123
  public static function getInitializer(ClassLoader $loader)
124
  {
125
  return \Closure::bind(function () use ($loader) {
126
- $loader->prefixLengthsPsr4 = ComposerStaticInitdd5e535efcefbce2dafa1eb3c9181fcb::$prefixLengthsPsr4;
127
- $loader->prefixDirsPsr4 = ComposerStaticInitdd5e535efcefbce2dafa1eb3c9181fcb::$prefixDirsPsr4;
128
- $loader->classMap = ComposerStaticInitdd5e535efcefbce2dafa1eb3c9181fcb::$classMap;
129
 
130
  }, null, ClassLoader::class);
131
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitf357817e391b286c997f3abb9d725c67
8
  {
9
  public static $files = array (
10
  'c65d09b6820da036953a371c8c73a9b1' => __DIR__ . '/..' . '/facebook/graph-sdk/src/Facebook/polyfills.php',
123
  public static function getInitializer(ClassLoader $loader)
124
  {
125
  return \Closure::bind(function () use ($loader) {
126
+ $loader->prefixLengthsPsr4 = ComposerStaticInitf357817e391b286c997f3abb9d725c67::$prefixLengthsPsr4;
127
+ $loader->prefixDirsPsr4 = ComposerStaticInitf357817e391b286c997f3abb9d725c67::$prefixDirsPsr4;
128
+ $loader->classMap = ComposerStaticInitf357817e391b286c997f3abb9d725c67::$classMap;
129
 
130
  }, null, ClassLoader::class);
131
  }