AMP for WP – Accelerated Mobile Pages - Version 1.0.71

Version Description

(10th December 2020) = * Fixed: AMP Page builder accordion not working in 1.0.70 #4862 * Fixed: Category name in the dropdown not redirecting and AMP Sidebar alignment #4861 * Fixed: AMP Sidebar Menu Remains Open After Browser Back in Firefox and Safari #4840 * Fixed: amp-auto-ads was found on this page, but is unused error #4851 * Fixed: Amp option panel breaks in Product Filter For WooCommerce Product Plugin #4853 * Fixed: ID attribute added inside the analytics section #4852 * Fixed: Updated Facebook Messanger Icon #4859 * Fixed: Heading elements added in blurb module of AMP page builder #4856 * Fixed: Special characters are showing for post titles after sharing tweets #4850

Download this release

Release Info

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

Code changes from version 1.0.70 to 1.0.71

README.md CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
- Stable tag: 1.0.70
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -193,6 +193,17 @@ Device testing done through [BrowserStack](https://www.browserstack.com)
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
 
 
 
 
196
  = 1.0.70 (7th December 2020) =
197
  * Improvement: Added filter to modify author bio description #4849
198
  * Improvement: Added LGDP (Brazil's GDPR) #4854
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
+ Stable tag: 1.0.71
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
193
 
194
  == Changelog ==
195
 
196
+ = 1.0.71 (10th December 2020) =
197
+ * Fixed: AMP Page builder accordion not working in 1.0.70 #4862
198
+ * Fixed: Category name in the dropdown not redirecting and AMP Sidebar alignment #4861
199
+ * Fixed: AMP Sidebar Menu Remains Open After Browser Back in Firefox and Safari #4840
200
+ * Fixed: amp-auto-ads was found on this page, but is unused error #4851
201
+ * Fixed: Amp option panel breaks in Product Filter For WooCommerce Product Plugin #4853
202
+ * Fixed: ID attribute added inside the analytics section #4852
203
+ * Fixed: Updated Facebook Messanger Icon #4859
204
+ * Fixed: Heading elements added in blurb module of AMP page builder #4856
205
+ * Fixed: Special characters are showing for post titles after sharing tweets #4850
206
+
207
  = 1.0.70 (7th December 2020) =
208
  * Improvement: Added filter to modify author bio description #4849
209
  * Improvement: Added LGDP (Brazil's GDPR) #4854
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: 1.0.70
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
@@ -20,7 +20,7 @@ define('AMPFORWP_PLUGIN_DIR_URI', plugin_dir_url(__FILE__));
20
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
21
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
22
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
23
- define('AMPFORWP_VERSION','1.0.70');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
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: 1.0.71
7
  Author: Ahmed Kaludi, Mohammed Kaludi
8
  Author URI: https://ampforwp.com/
9
  Donate link: https://www.paypal.me/Kaludi/25
20
  define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.html');
21
  define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
22
  define('AMPFORWP_MAIN_PLUGIN_DIR', plugin_dir_path( __DIR__ ) );
23
+ define('AMPFORWP_VERSION','1.0.71');
24
  define('AMPFORWP_EXTENSION_DIR',plugin_dir_path(__FILE__).'includes/options/extensions');
25
  if(!defined('AMPFROWP_HOST_NAME')){
26
  $urlinfo = get_bloginfo('url');
changelog.txt CHANGED
@@ -1,5 +1,16 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 1.0.70 (7th December 2020) =
4
  * Improvement: Added filter to modify author bio description #4849
5
  * Improvement: Added LGDP (Brazil's GDPR) #4854
1
  == Changelog ==
2
 
3
+ = 1.0.71 (10th December 2020) =
4
+ * Fixed: AMP Page builder accordion not working in 1.0.70 #4862
5
+ * Fixed: Category name in the dropdown not redirecting and AMP Sidebar alignment #4861
6
+ * Fixed: AMP Sidebar Menu Remains Open After Browser Back in Firefox and Safari #4840
7
+ * Fixed: amp-auto-ads was found on this page, but is unused error #4851
8
+ * Fixed: Amp option panel breaks in Product Filter For WooCommerce Product Plugin #4853
9
+ * Fixed: ID attribute added inside the analytics section #4852
10
+ * Fixed: Updated Facebook Messanger Icon #4859
11
+ * Fixed: Heading elements added in blurb module of AMP page builder #4856
12
+ * Fixed: Special characters are showing for post titles after sharing tweets #4850
13
+
14
  = 1.0.70 (7th December 2020) =
15
  * Improvement: Added filter to modify author bio description #4849
16
  * Improvement: Added LGDP (Brazil's GDPR) #4854
classes/class-ampforwp-walker-nav-menu.php CHANGED
@@ -76,7 +76,10 @@ if ( ! defined( 'ABSPATH' ) ) {
76
  $attributes .= ' class="dropdown-toggle"';
77
  $attributes .= ' data-toggle="dropdown"';
78
  }
79
-
 
 
 
80
  $item_output = isset($args->before) ? $args->before : 1;
81
 
82
  $item_output .= '<a'. $attributes .'>';
76
  $attributes .= ' class="dropdown-toggle"';
77
  $attributes .= ' data-toggle="dropdown"';
78
  }
79
+ global $is_safari;
80
+ if ($is_safari || strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox')) {
81
+ $attributes .= 'on="tap:sidebar.close"';
82
+ }
83
  $item_output = isset($args->before) ? $args->before : 1;
84
 
85
  $item_output .= '<a'. $attributes .'>';
images/messenger.png CHANGED
Binary file
includes/features/analytics/analytics-options.php CHANGED
@@ -17,6 +17,7 @@ function ampforwp_analytics_options($opt_name){
17
  Redux::setSection( $opt_name, array(
18
  'title' => esc_html__('Analytics'),
19
  // 'icon' => 'el el-th-large',
 
20
  'subsection' => true,
21
  'fields' =>
22
  array(
17
  Redux::setSection( $opt_name, array(
18
  'title' => esc_html__('Analytics'),
19
  // 'icon' => 'el el-th-large',
20
+ 'id' => 'analytics',
21
  'subsection' => true,
22
  'fields' =>
23
  array(
includes/features/functions.php CHANGED
@@ -50,6 +50,9 @@ function ampforwp_add_admin_styling($hook_suffix){
50
  if(class_exists('WC_Ecpay_Apple_Pay')){
51
  remove_all_actions('admin_footer');
52
  }
 
 
 
53
  add_action('admin_notices', 'ampforwp_dev_mode_notice');
54
  add_action('admin_notices', 'ampforwp_plugins_manager_notice');
55
  add_action('admin_notices', 'ampforwp_ampwptheme_notice');
50
  if(class_exists('WC_Ecpay_Apple_Pay')){
51
  remove_all_actions('admin_footer');
52
  }
53
+ if (function_exists('wps_pf_pr_filter_register')) {
54
+ wp_dequeue_script('wpspf-main-js-3');
55
+ }
56
  add_action('admin_notices', 'ampforwp_dev_mode_notice');
57
  add_action('admin_notices', 'ampforwp_plugins_manager_notice');
58
  add_action('admin_notices', 'ampforwp_ampwptheme_notice');
includes/features/performance/performance-functions.php CHANGED
@@ -40,6 +40,12 @@ function ampforwp_minify_html_output($content_buffer){
40
  $content_buffer = preg_replace('/&lt;/', '<', $content_buffer);
41
  $content_buffer = preg_replace('/&gt;/', '>', $content_buffer);
42
  }
 
 
 
 
 
 
43
  global $redux_builder_amp;
44
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
45
  return $content_buffer;
40
  $content_buffer = preg_replace('/&lt;/', '<', $content_buffer);
41
  $content_buffer = preg_replace('/&gt;/', '>', $content_buffer);
42
  }
43
+ if(function_exists('googlesitekit_activate_plugin') && preg_match('/<script custom-element="amp-auto-ads"(.*?)src="(.*?)" async><\/script>(.*?)<amp-auto-ads/', $content_buffer)==0){
44
+ $content_buffer = preg_replace('/<script custom-element="amp-auto-ads"(.*?)src="(.*?)" async><\/script>/', '', $content_buffer);
45
+ }
46
+ if(preg_match('/<form(.*?)for="categories-dropdown-(.*?)"(.*?)class="postform(.*?)>/', $content_buffer)){
47
+ $content_buffer = preg_replace('/<form(.*?)for="categories-dropdown-(.*?)"(.*?)class="postform(.*?)>/', '<form id="amp-wp-widget-categories-1" on="change:amp-wp-widget-categories-1.submit" $1for="categories-dropdown-$2"$3class="postform$4>', $content_buffer);
48
+ }
49
  global $redux_builder_amp;
50
  if(!$redux_builder_amp['ampforwp_cache_minimize_mode']){
51
  return $content_buffer;
pagebuilder/inc/viewShowFrontData.php CHANGED
@@ -427,6 +427,7 @@ function amp_pagebuilder_content_styles(){
427
  continue;
428
  }
429
  $repeaterFrontCss = $moduleTemplate[$contentArray['type']]['repeater']['front_css'];
 
430
  if($moduleField['content_type']=='css'){
431
  $repeaterFrontCss = str_replace("{{module-class}}", '.ap_m_'.$contentArray['cell_id'], $repeaterFrontCss );
432
  $repeaterFrontCss = str_replace('{{repeater-module-class}}', $moduleField['name'].'_'.$repeaterVarIndex, $repeaterFrontCss);
427
  continue;
428
  }
429
  $repeaterFrontCss = $moduleTemplate[$contentArray['type']]['repeater']['front_css'];
430
+ $repeaterFrontCss = str_replace("{{acc_head_type}}", $moduleTemplate["accordion-mod"]["repeater"]["fields"][1]["default"] , $repeaterFrontCss );
431
  if($moduleField['content_type']=='css'){
432
  $repeaterFrontCss = str_replace("{{module-class}}", '.ap_m_'.$contentArray['cell_id'], $repeaterFrontCss );
433
  $repeaterFrontCss = str_replace('{{repeater-module-class}}', $moduleField['name'].'_'.$repeaterVarIndex, $repeaterFrontCss);
pagebuilder/modules/blurb-mod-module.php CHANGED
@@ -378,6 +378,22 @@ return array(
378
  'default' =>'Heading',
379
  'content_type'=>'html',
380
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
381
  array(
382
  'type' =>'text-editor',
383
  'name' =>"content",
@@ -392,7 +408,7 @@ return array(
392
  '{{if_condition_blurb_layout_type==1}}
393
  <div class="blu-mod">
394
  <span class="ico-pic icon-{{icon-picker}}"></span>
395
- <h3 class="blurb-txt">{{content_title}}</h3>
396
  {{content}}
397
  </div>
398
  {{ifend_condition_blurb_layout_type_1}}
378
  'default' =>'Heading',
379
  'content_type'=>'html',
380
  ),
381
+ array(
382
+ 'type' =>'select',
383
+ 'name' =>'blurb_head_type',
384
+ 'label' => esc_html__('Header Type', 'accelerated-mobile-pages'),
385
+ 'tab' =>'customizer',
386
+ 'default' =>'h3',
387
+ 'options_details'=>array(
388
+ 'h1' =>'H1',
389
+ 'h2' =>'H2',
390
+ 'h3' =>'H3',
391
+ 'h4' =>'H4',
392
+ 'h5' =>'H5',
393
+ 'h6' =>'H6',
394
+ ),
395
+ 'content_type'=>'html',
396
+ ),
397
  array(
398
  'type' =>'text-editor',
399
  'name' =>"content",
408
  '{{if_condition_blurb_layout_type==1}}
409
  <div class="blu-mod">
410
  <span class="ico-pic icon-{{icon-picker}}"></span>
411
+ <{{blurb_head_type}} class="blurb-txt">{{content_title}}</{{blurb_head_type}}>
412
  {{content}}
413
  </div>
414
  {{ifend_condition_blurb_layout_type_1}}
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, go
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
- Stable tag: 1.0.70
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -190,6 +190,17 @@ You can contact us from [here](https://ampforwp.com/contact/)
190
 
191
  == Changelog ==
192
 
 
 
 
 
 
 
 
 
 
 
 
193
  = 1.0.70 (7th December 2020) =
194
  * Improvement: Added filter to modify author bio description #4849
195
  * Improvement: Added LGDP (Brazil's GDPR) #4854
4
  Donate link: https://www.paypal.me/Kaludi/25
5
  Requires at least: 3.0
6
  Tested up to: 5.6
7
+ Stable tag: 1.0.71
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
190
 
191
  == Changelog ==
192
 
193
+ = 1.0.71 (10th December 2020) =
194
+ * Fixed: AMP Page builder accordion not working in 1.0.70 #4862
195
+ * Fixed: Category name in the dropdown not redirecting and AMP Sidebar alignment #4861
196
+ * Fixed: AMP Sidebar Menu Remains Open After Browser Back in Firefox and Safari #4840
197
+ * Fixed: amp-auto-ads was found on this page, but is unused error #4851
198
+ * Fixed: Amp option panel breaks in Product Filter For WooCommerce Product Plugin #4853
199
+ * Fixed: ID attribute added inside the analytics section #4852
200
+ * Fixed: Updated Facebook Messanger Icon #4859
201
+ * Fixed: Heading elements added in blurb module of AMP page builder #4856
202
+ * Fixed: Special characters are showing for post titles after sharing tweets #4850
203
+
204
  = 1.0.70 (7th December 2020) =
205
  * Improvement: Added filter to modify author bio description #4849
206
  * Improvement: Added LGDP (Brazil's GDPR) #4854
templates/design-manager/design-3/elements/social-icons.php CHANGED
@@ -73,7 +73,7 @@ if(true == ampforwp_get_setting('ampforwp-social-share') && false == ampforwp_ge
73
  $data_param_data = ampforwp_get_setting('enable-single-twitter-share-handle');
74
  $data_param_data = str_replace('@', '', $data_param_data);?>
75
  <div class="ampforwp-custom-social">
76
- <a title="twitter share" <?php ampforwp_rel_attributes_social_links(); ?> href="https://twitter.com/intent/tweet?url=<?php echo esc_url($twitter_amp_permalink); ?>&text=<?php echo esc_attr(rawurlencode( get_the_title() )); ?>&via=<?php echo esc_attr($data_param_data); ?>" class="a-so-i-rounded a-so-twitter" aria-label="twitter share">
77
  <amp-img src="data:image/svg+xml;base64,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jUuNjgtMjUuNjY2IDU2LjcwNC0zOC41MDUgOTMuMTUzLTM4LjUwNSAzNy43OSAwIDY5LjcwMiAxMy44OCA5NS43MyA0MS42NCAzMC4xNjgtNi4yNTcgNTcuOTI4LTE3LjAxNSA4My4yNTYtMzIuMjYtOS43MTggMzEuNTU4LTI4LjgxNSA1NS44NDUtNTcuMjM4IDcyLjg0NyAyNS4zMjgtMy4xMSA1MC4zMDQtMTAuMDU2IDc0LjkzLTIwLjgxNC0xNi42NTIgMjYuMDE3LTM4LjMzNyA0OC43NDItNjUuMDU3IDY4LjE1MnYxNy4xOTdjMCAzNC45OTItNS4xMjQgNzAuMTI4LTE1LjM0OCAxMDUuMzU1LTEwLjIxMiAzNS4yMTQtMjUuODUgNjguODUzLTQ2LjgzIDEwMC45NzItMjAuOTk2IDMyLjA2NS00Ni4wNSA2MC42Mi03NS4xOSA4NS41Ny0yOS4xMjYgMjQuOTc2LTY0LjA4IDQ0Ljg1My0xMDQuODUgNTkuNTktNDAuNzU0IDE0Ljc1My04NC41NTMgMjIuMDktMTMxLjM5NyAyMi4wOUMxMjguODYyIDU4OC45NCA2MS43NCA1NjkuMzUgMCA1MzAuMTU0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" />
78
  </a>
79
  </div>
73
  $data_param_data = ampforwp_get_setting('enable-single-twitter-share-handle');
74
  $data_param_data = str_replace('@', '', $data_param_data);?>
75
  <div class="ampforwp-custom-social">
76
+ <a title="twitter share" <?php ampforwp_rel_attributes_social_links(); ?> href="https://twitter.com/intent/tweet?url=<?php echo esc_url($twitter_amp_permalink); ?>&text=<?php echo esc_attr(ampforwp_sanitize_twitter_title( get_the_title() )); ?>&via=<?php echo esc_attr($data_param_data); ?>" class="a-so-i-rounded a-so-twitter" aria-label="twitter share">
77
  <amp-img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm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yA0MS42NCAzMC4xNjgtNi4yNTcgNTcuOTI4LTE3LjAxNSA4My4yNTYtMzIuMjYtOS43MTggMzEuNTU4LTI4LjgxNSA1NS44NDUtNTcuMjM4IDcyLjg0NyAyNS4zMjgtMy4xMSA1MC4zMDQtMTAuMDU2IDc0LjkzLTIwLjgxNC0xNi42NTIgMjYuMDE3LTM4LjMzNyA0OC43NDItNjUuMDU3IDY4LjE1MnYxNy4xOTdjMCAzNC45OTItNS4xMjQgNzAuMTI4LTE1LjM0OCAxMDUuMzU1LTEwLjIxMiAzNS4yMTQtMjUuODUgNjguODUzLTQ2LjgzIDEwMC45NzItMjAuOTk2IDMyLjA2NS00Ni4wNSA2MC42Mi03NS4xOSA4NS41Ny0yOS4xMjYgMjQuOTc2LTY0LjA4IDQ0Ljg1My0xMDQuODUgNTkuNTktNDAuNzU0IDE0Ljc1My04NC41NTMgMjIuMDktMTMxLjM5NyAyMi4wOUMxMjguODYyIDU4OC45NCA2MS43NCA1NjkuMzUgMCA1MzAuMTU0eiI+PC9wYXRoPjwvc3ZnPg==" width="16" height="16" />
78
  </a>
79
  </div>
templates/design-manager/swift/functions.php CHANGED
@@ -332,10 +332,3 @@ function ampforwp_swift_social_icons(){
332
  // Remove default sticky social from Swift
333
  remove_action('amp_post_template_footer','ampforwp_sticky_social_icons');
334
  remove_action('amp_post_template_css','amp_social_styles',11);
335
- //Twitter title #2744
336
- function ampforwp_sanitize_twitter_title($post_title){
337
- $post_title = html_entity_decode( $post_title, ENT_QUOTES, 'UTF-8' );
338
- $post_title = rawurlencode( $post_title );
339
- $post_title = esc_html( $post_title );
340
- return $post_title;
341
- }
332
  // Remove default sticky social from Swift
333
  remove_action('amp_post_template_footer','ampforwp_sticky_social_icons');
334
  remove_action('amp_post_template_css','amp_social_styles',11);
 
 
 
 
 
 
 
templates/design-manager/swift/page.php CHANGED
@@ -48,7 +48,7 @@ amp_header(); ?>
48
  if( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && is_page() && true == ampforwp_get_setting('ampforwp-page-social') && 'above-content' != ampforwp_get_setting('swift-social-position') ) {
49
  echo ampforwp_swift_social_icons();
50
  } ?>
51
- <?php if( !ampforwp_levelup_compatibility('levelup_elementor') && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ // Level up Condition starts ?>
52
  <div class="cmts">
53
  <?php amp_comments();?>
54
  </div>
@@ -61,6 +61,11 @@ amp_header(); ?>
61
  <div class="<?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>cntr <?php } ?>pgb">
62
  <div class="cntn-wrp pg-lft">
63
  <?php amp_content(); ?>
 
 
 
 
 
64
  </div>
65
  <?php if(isset($redux_builder_amp['gbl-sidebar']) && $redux_builder_amp['gbl-sidebar'] == '1'){ ?>
66
  <div class="sdbr-right"> <?php
48
  if( !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && is_page() && true == ampforwp_get_setting('ampforwp-page-social') && 'above-content' != ampforwp_get_setting('swift-social-position') ) {
49
  echo ampforwp_swift_social_icons();
50
  } ?>
51
+ <?php if( !ampforwp_levelup_compatibility('levelup_elementor') && !checkAMPforPageBuilderStatus(ampforwp_get_the_ID()) && !ampforwp_is_front_page()){ // Level up Condition starts ?>
52
  <div class="cmts">
53
  <?php amp_comments();?>
54
  </div>
61
  <div class="<?php if(!checkAMPforPageBuilderStatus(ampforwp_get_the_ID())){ ?>cntr <?php } ?>pgb">
62
  <div class="cntn-wrp pg-lft">
63
  <?php amp_content(); ?>
64
+ <?php if(ampforwp_get_comments_status()){ ?>
65
+ <div class="cmts">
66
+ <?php amp_comments();?>
67
+ </div>
68
+ <?php } ?>
69
  </div>
70
  <?php if(isset($redux_builder_amp['gbl-sidebar']) && $redux_builder_amp['gbl-sidebar'] == '1'){ ?>
71
  <div class="sdbr-right"> <?php
templates/features.php CHANGED
@@ -9152,4 +9152,11 @@ function ampforwp_remove_homepage_breadcrumb($data){
9152
  }
9153
  }
9154
  return $data;
 
 
 
 
 
 
 
9155
  }
9152
  }
9153
  }
9154
  return $data;
9155
+ }
9156
+ //Twitter title #2744
9157
+ function ampforwp_sanitize_twitter_title($post_title){
9158
+ $post_title = html_entity_decode( $post_title, ENT_QUOTES, 'UTF-8' );
9159
+ $post_title = rawurlencode( $post_title );
9160
+ $post_title = esc_html( $post_title );
9161
+ return $post_title;
9162
  }