AMP for WP – Accelerated Mobile Pages - Version 0.9.71

Version Description

(1st December 2017) = * Design 2 Post Titles issue fixed * Instant Articles validation issue fixed.

Download this release

Release Info

Developer mohammed_kaludi
Plugin Icon 128x128 AMP for WP – Accelerated Mobile Pages
Version 0.9.71
Comparing to
See all releases

Code changes from version 0.9.70 to 0.9.71

accelerated-moblie-pages.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
- Version: 0.9.70
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
@@ -18,7 +18,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
18
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
19
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
20
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
21
- define('AMPFORWP_VERSION','0.9.70');
22
 
23
  // any changes to AMP_QUERY_VAR should be refelected here
24
  function ampforwp_generate_endpoint(){
3
  Plugin Name: Accelerated Mobile Pages
4
  Plugin URI: https://wordpress.org/plugins/accelerated-mobile-pages/
5
  Description: AMP for WP - Accelerated Mobile Pages for WordPress
6
+ Version: 0.9.71
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
18
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
19
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
20
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
21
+ define('AMPFORWP_VERSION','0.9.71');
22
 
23
  // any changes to AMP_QUERY_VAR should be refelected here
24
  function ampforwp_generate_endpoint(){
includes/options/admin-config.php CHANGED
@@ -1679,16 +1679,16 @@ Redux::setSection( $opt_name, array(
1679
  'required' => array('fb-instant-article-ads', '=', 1)
1680
  ),
1681
  array(
1682
- 'id' => 'fb-instant-article-ad-density',
1683
  'type' => 'select',
1684
  'title' => __('How often should ads show in Instant Article pages', 'accelerated-mobile-pages'),
1685
  'options' => array(
1686
- 'defualt' => __('Every 250 words', 'accelerated-mobile-pages' ),
1687
  'medium' => __('Every 350 words', 'accelerated-mobile-pages' ),
1688
  'low' => __('Every 500 words', 'accelerated-mobile-pages' ),
1689
  ),
1690
  'required' => array('fb-instant-article-ads', '=', 1),
1691
- 'default' => 'defualt',
1692
  ),
1693
  array(
1694
  'id' => 'fb-instant-article-analytics',
1679
  'required' => array('fb-instant-article-ads', '=', 1)
1680
  ),
1681
  array(
1682
+ 'id' => 'fb-instant-article-ad-density-setup',
1683
  'type' => 'select',
1684
  'title' => __('How often should ads show in Instant Article pages', 'accelerated-mobile-pages'),
1685
  'options' => array(
1686
+ 'default' => __('Every 250 words', 'accelerated-mobile-pages' ),
1687
  'medium' => __('Every 350 words', 'accelerated-mobile-pages' ),
1688
  'low' => __('Every 500 words', 'accelerated-mobile-pages' ),
1689
  ),
1690
  'required' => array('fb-instant-article-ads', '=', 1),
1691
+ 'default' => 'default',
1692
  ),
1693
  array(
1694
  'id' => 'fb-instant-article-analytics',
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
- Tested up to: 4.9
7
- Stable tag: 0.9.70
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -150,6 +150,10 @@ You can contact me using this url: http://ampforwp.com/contact/
150
 
151
  == Changelog ==
152
 
 
 
 
 
153
  = 0.9.70 (30th November 2017) =
154
  * View More details on https://ampforwp.com/0-9-70-released-stability-update-76th-update/
155
  * Image alt tags are empty which caused issues. #1154 (thanks to @liagua)
3
  Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin, SEO
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
+ Tested up to: 4.9.1
7
+ Stable tag: 0.9.71
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
150
 
151
  == Changelog ==
152
 
153
+ = 0.9.71 (1st December 2017) =
154
+ * Design 2 Post Titles issue fixed
155
+ * Instant Articles validation issue fixed.
156
+
157
  = 0.9.70 (30th November 2017) =
158
  * View More details on https://ampforwp.com/0-9-70-released-stability-update-76th-update/
159
  * Image alt tags are empty which caused issues. #1154 (thanks to @liagua)
templates/design-manager/design-2/style.php CHANGED
@@ -107,7 +107,7 @@ amp-lightbox{ background: rgba(0, 0, 0,0.85); }
107
  .custom-amp-social-sharing-odnoklassniki{background:#ed812b}
108
  <?php }?>
109
  /* Header */
110
- header{line-height: 0;}
111
  #header{ background: #fff; text-align: center;padding:17px 0px 17px 0px;display: inline-block;width: 100%;position:relative}
112
  #header h1{ text-align: center; font-size: 20px; font-weight: bold; line-height: 1; padding: 4px 3px; margin: 0; }
113
  .amp-logo{left: 0;right: 0;display:inline-block}
107
  .custom-amp-social-sharing-odnoklassniki{background:#ed812b}
108
  <?php }?>
109
  /* Header */
110
+ header.container{line-height: 0;}
111
  #header{ background: #fff; text-align: center;padding:17px 0px 17px 0px;display: inline-block;width: 100%;position:relative}
112
  #header h1{ text-align: center; font-size: 20px; font-weight: bold; line-height: 1; padding: 4px 3px; margin: 0; }
113
  .amp-logo{left: 0;right: 0;display:inline-block}
templates/features.php CHANGED
@@ -5156,6 +5156,7 @@ function ampforwp_merriweather_font_management( $data ) {
5156
 
5157
  return $data;
5158
  }
 
5159
  // 100. Flags compatibility in Menu
5160
  add_filter('ampforwp_menu_content','ampforwp_modify_menu_content');
5161
  if( ! function_exists(' ampforwp_modify_menu_content ') ){
5156
 
5157
  return $data;
5158
  }
5159
+
5160
  // 100. Flags compatibility in Menu
5161
  add_filter('ampforwp_menu_content','ampforwp_modify_menu_content');
5162
  if( ! function_exists(' ampforwp_modify_menu_content ') ){
templates/instant-articles/instant-article-sanitizer.php CHANGED
@@ -283,7 +283,7 @@ function ampforwp_fbia_video_element( $DOMDocument ){
283
 
284
  function get_ia_ad_density(){
285
  global $redux_builder_amp;
286
- $instant_article_ad_density = $redux_builder_amp['fb-instant-article-ad-density'];
287
  return $instant_article_ad_density;
288
  }
289
 
283
 
284
  function get_ia_ad_density(){
285
  global $redux_builder_amp;
286
+ $instant_article_ad_density = $redux_builder_amp['fb-instant-article-ad-density-setup'];
287
  return $instant_article_ad_density;
288
  }
289