Version Description
Download this release
Release Info
Developer | diegoquinteiro |
Plugin | Instant Articles for WP |
Version | 2.5 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.5
- facebook-instant-articles.php +2 -2
- readme.txt +1 -1
- rules-configuration.json +20 -1
- settings/class-instant-articles-option-publishing.php +2 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +3 -3
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: 2.
|
8 |
* Text Domain: instant-articles
|
9 |
* License: GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -19,7 +19,7 @@ if ( version_compare( PHP_VERSION, '5.4', '<' ) ) {
|
|
19 |
'',
|
20 |
"echo '<div class=\"error\"><p>".
|
21 |
__(
|
22 |
-
'Instant Articles for WP requires PHP 5.
|
23 |
'Please upgrade PHP or deactivate Instant Articles for WP.',
|
24 |
'instant-articles'
|
25 |
).
|
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: 2.5
|
8 |
* Text Domain: instant-articles
|
9 |
* License: GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
19 |
'',
|
20 |
"echo '<div class=\"error\"><p>".
|
21 |
__(
|
22 |
+
'Instant Articles for WP requires PHP 5.4 to function properly. '.
|
23 |
'Please upgrade PHP or deactivate Instant Articles for WP.',
|
24 |
'instant-articles'
|
25 |
).
|
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.5
|
6 |
-
Stable tag: 2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
3 |
Tags: instant articles, facebook, mobile
|
4 |
Requires at least: 4.3
|
5 |
Tested up to: 4.5
|
6 |
+
Stable tag: 2.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
rules-configuration.json
CHANGED
@@ -166,7 +166,7 @@
|
|
166 |
"selector" : "figcaption"
|
167 |
}
|
168 |
}
|
169 |
-
},{
|
170 |
"class": "SocialEmbedRule",
|
171 |
"selector" : "div.embed",
|
172 |
"properties" : {
|
@@ -175,6 +175,15 @@
|
|
175 |
"selector" : "div.embed"
|
176 |
}
|
177 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
}, {
|
179 |
"class": "SocialEmbedRule",
|
180 |
"selector" : "//div[@class='embed' and iframe]",
|
@@ -185,6 +194,16 @@
|
|
185 |
"attribute": "src"
|
186 |
}
|
187 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
}, {
|
189 |
"class": "ImageRule",
|
190 |
"selector": "//p[a[img]]|//a[img]",
|
166 |
"selector" : "figcaption"
|
167 |
}
|
168 |
}
|
169 |
+
}, {
|
170 |
"class": "SocialEmbedRule",
|
171 |
"selector" : "div.embed",
|
172 |
"properties" : {
|
175 |
"selector" : "div.embed"
|
176 |
}
|
177 |
}
|
178 |
+
}, {
|
179 |
+
"class": "InteractiveRule",
|
180 |
+
"selector" : "div.interactive",
|
181 |
+
"properties" : {
|
182 |
+
"interactive.iframe" : {
|
183 |
+
"type" : "children",
|
184 |
+
"selector" : "div.interactive"
|
185 |
+
}
|
186 |
+
}
|
187 |
}, {
|
188 |
"class": "SocialEmbedRule",
|
189 |
"selector" : "//div[@class='embed' and iframe]",
|
194 |
"attribute": "src"
|
195 |
}
|
196 |
}
|
197 |
+
}, {
|
198 |
+
"class": "InteractiveRule",
|
199 |
+
"selector" : "//div[@class='interactive' and iframe]",
|
200 |
+
"properties" : {
|
201 |
+
"interactive.url" : {
|
202 |
+
"type" : "string",
|
203 |
+
"selector" : "iframe",
|
204 |
+
"attribute": "src"
|
205 |
+
}
|
206 |
+
}
|
207 |
}, {
|
208 |
"class": "ImageRule",
|
209 |
"selector": "//p[a[img]]|//a[img]",
|
settings/class-instant-articles-option-publishing.php
CHANGED
@@ -43,7 +43,8 @@ class Instant_Articles_Option_Publishing extends Instant_Articles_Option {
|
|
43 |
'label' => '',
|
44 |
'render' => 'textarea',
|
45 |
'placeholder' => '{ "rules": [{ "class": "BoldRule", "selector": "span.bold" }, ... ] }',
|
46 |
-
'description' => 'Refer to the <a href="https://github.com/facebook/facebook-instant-articles-sdk-php/blob/master/tests/Facebook/InstantArticles/Transformer/instant-article-example-rules.json" target="_blank">example JSON</a> on the <a href="https://github.com/facebook/facebook-instant-articles-sdk-php" target="_blank">Facebook Instant Articles PHP SDK</a> for sample configurations for all built-in rules.'
|
|
|
47 |
),
|
48 |
|
49 |
);
|
43 |
'label' => '',
|
44 |
'render' => 'textarea',
|
45 |
'placeholder' => '{ "rules": [{ "class": "BoldRule", "selector": "span.bold" }, ... ] }',
|
46 |
+
'description' => 'Refer to the <a href="https://github.com/facebook/facebook-instant-articles-sdk-php/blob/master/tests/Facebook/InstantArticles/Transformer/instant-article-example-rules.json" target="_blank">example JSON</a> on the <a href="https://github.com/facebook/facebook-instant-articles-sdk-php" target="_blank">Facebook Instant Articles PHP SDK</a> for sample configurations for all built-in rules.',
|
47 |
+
'default' => ''
|
48 |
),
|
49 |
|
50 |
);
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitfd388dc88fcfe23659ac38193fdb101e::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit5e384922e1f74623ecd001521fdfec6e
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitfd388dc88fcfe23659ac38193fdb101e
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitfd388dc88fcfe23659ac38193fdb101e', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitfd388dc88fcfe23659ac38193fdb101e', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|