Version Description
Download this release
Release Info
Developer | diegoquinteiro |
Plugin | Instant Articles for WP |
Version | 2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.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
|
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.3
|
8 |
* Text Domain: instant-articles
|
9 |
* License: GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
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.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
settings/class-instant-articles-option-ads.php
CHANGED
@@ -185,18 +185,13 @@ class Instant_Articles_Option_Ads extends Instant_Articles_Option {
|
|
185 |
|
186 |
case 'fan_placement_id':
|
187 |
if ( isset( $field_values['ad_source'] ) && 'fan' === $field_values['ad_source'] ) {
|
188 |
-
if (
|
189 |
-
! is_numeric( $field_values[ $field_id ] ) ||
|
190 |
-
strval( absint( $field_values[ $field_id ] ) ) !== $field_values[ $field_id ]
|
191 |
-
) {
|
192 |
add_settings_error(
|
193 |
$field_id,
|
194 |
'invalid_placement_id',
|
195 |
'Invalid Audience Network Placement ID provided'
|
196 |
);
|
197 |
$field_values[ $field_id ] = $field['default'];
|
198 |
-
} else {
|
199 |
-
$field_values[ $field_id ] = absint( $field_values[ $field_id ] );
|
200 |
}
|
201 |
}
|
202 |
break;
|
185 |
|
186 |
case 'fan_placement_id':
|
187 |
if ( isset( $field_values['ad_source'] ) && 'fan' === $field_values['ad_source'] ) {
|
188 |
+
if ( preg_match( '/^[0-9_]+$/', $field_values[ $field_id ] ) !== 1 ) {
|
|
|
|
|
|
|
189 |
add_settings_error(
|
190 |
$field_id,
|
191 |
'invalid_placement_id',
|
192 |
'Invalid Audience Network Placement ID provided'
|
193 |
);
|
194 |
$field_values[ $field_id ] = $field['default'];
|
|
|
|
|
195 |
}
|
196 |
}
|
197 |
break;
|
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 ComposerAutoloaderInit7e80597e4b240da0b6349cef6380896e
|
|
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) {
|