Version Description
(31 March 2017) = * Installation Process from welcome page was not working after WP Plugin DIR API change was fixed. * WP Rocket Minifcation and Concatenation was not working, its fixed now. * WP Rocket was tested properly to make sure everything is working fine.
Download this release
Release Info
Developer | mohammed_kaludi |
Plugin | AMP for WP – Accelerated Mobile Pages |
Version | 0.9.45.6 |
Comparing to | |
See all releases |
Code changes from version 0.9.45.5 to 0.9.45.6
- accelerated-moblie-pages.php +3 -3
- includes/welcome.php +11 -10
- readme.txt +7 -2
- templates/features.php +0 -9
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.45.
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/5
|
@@ -16,7 +16,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
16 |
define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
|
17 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
|
18 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
19 |
-
define('AMPFORWP_VERSION','0.9.45.
|
20 |
// any changes to AMP_QUERY_VAR should be refelected here
|
21 |
define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
|
22 |
|
@@ -129,7 +129,7 @@ function ampforwp_parent_plugin_check() {
|
|
129 |
}
|
130 |
// Register all the main options
|
131 |
require_once dirname( __FILE__ ).'/includes/options/admin-config.php';
|
132 |
-
require_once
|
133 |
|
134 |
|
135 |
/*
|
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.45.6
|
7 |
Author: Ahmed Kaludi, Mohammed Kaludi
|
8 |
Author URI: https://ampforwp.com/
|
9 |
Donate link: https://www.paypal.me/Kaludi/5
|
16 |
define('AMPFORWP_PLUGIN_DIR', plugin_dir_path( __FILE__ ));
|
17 |
define('AMPFORWP_DISQUS_URL',plugin_dir_url(__FILE__).'includes/disqus.php');
|
18 |
define('AMPFORWP_IMAGE_DIR',plugin_dir_url(__FILE__).'images');
|
19 |
+
define('AMPFORWP_VERSION','0.9.45.6');
|
20 |
// any changes to AMP_QUERY_VAR should be refelected here
|
21 |
define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
|
22 |
|
129 |
}
|
130 |
// Register all the main options
|
131 |
require_once dirname( __FILE__ ).'/includes/options/admin-config.php';
|
132 |
+
require_once AMPFORWP_PLUGIN_DIR .'templates/report-bugs.php';
|
133 |
|
134 |
|
135 |
/*
|
includes/welcome.php
CHANGED
@@ -112,19 +112,19 @@ function ampforwp_plugin_parent_activation() {
|
|
112 |
include( ABSPATH . "wp-admin/includes/plugin-install.php" );
|
113 |
global $tabs, $tab, $paged, $type, $term;
|
114 |
$tabs = array();
|
115 |
-
$tab = "
|
116 |
$per_page = 1;
|
117 |
$args = array
|
118 |
-
|
119 |
-
|
120 |
"page" => $paged,
|
121 |
"per_page" => $per_page,
|
122 |
-
"fields" => array( "last_updated" => true, "
|
123 |
-
"locale" => get_locale(),
|
124 |
);
|
125 |
$args = apply_filters( "install_plugins_table_api_args_$tab", $args );
|
126 |
-
|
127 |
-
$item = $api
|
128 |
|
129 |
$plugins_allowedtags = array(
|
130 |
'a' => array( 'href' => array(), 'title' => array(), 'target' => array() ),
|
@@ -265,7 +265,8 @@ background: #4CAF50;
|
|
265 |
return $activateUrl;
|
266 |
}
|
267 |
|
268 |
-
foreach ( (array) $item as $plugin ) {
|
|
|
269 |
if ( is_object( $plugin ) ) {
|
270 |
$plugin = (array) $plugin;
|
271 |
}
|
@@ -375,7 +376,7 @@ background: #4CAF50;
|
|
375 |
</div>
|
376 |
</div>
|
377 |
<?php
|
378 |
-
} ?>
|
379 |
|
380 |
</div>
|
381 |
</div>
|
@@ -420,4 +421,4 @@ function ampforwp_offline_admin_notice() {
|
|
420 |
</script>
|
421 |
<?php } ?>
|
422 |
<?php
|
423 |
-
}
|
112 |
include( ABSPATH . "wp-admin/includes/plugin-install.php" );
|
113 |
global $tabs, $tab, $paged, $type, $term;
|
114 |
$tabs = array();
|
115 |
+
$tab = "slug";
|
116 |
$per_page = 1;
|
117 |
$args = array
|
118 |
+
(
|
119 |
+
"slug" => "amp",
|
120 |
"page" => $paged,
|
121 |
"per_page" => $per_page,
|
122 |
+
"fields" => array( "last_updated" => true, "short_description" => true, "downloaded" => false, "icons" => true ),
|
123 |
+
//"locale" => get_locale(),
|
124 |
);
|
125 |
$args = apply_filters( "install_plugins_table_api_args_$tab", $args );
|
126 |
+
$api = plugins_api( "plugin_information", $args );
|
127 |
+
$item = $api;
|
128 |
|
129 |
$plugins_allowedtags = array(
|
130 |
'a' => array( 'href' => array(), 'title' => array(), 'target' => array() ),
|
265 |
return $activateUrl;
|
266 |
}
|
267 |
|
268 |
+
// foreach ( (array) $item as $plugin ) {
|
269 |
+
$plugin = $item;
|
270 |
if ( is_object( $plugin ) ) {
|
271 |
$plugin = (array) $plugin;
|
272 |
}
|
376 |
</div>
|
377 |
</div>
|
378 |
<?php
|
379 |
+
// } ?>
|
380 |
|
381 |
</div>
|
382 |
</div>
|
421 |
</script>
|
422 |
<?php } ?>
|
423 |
<?php
|
424 |
+
}
|
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
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.7.
|
7 |
-
Stable tag: 0.9.45.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -129,6 +129,11 @@ You can contact me using this url: http://ampforwp.com/contact/
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
|
|
|
|
132 |
= 0.9.45.5 (25 March 2017) =
|
133 |
* WP rocket conflict solved
|
134 |
* Cannot set property ‘innerHTML’ of null issue fixed
|
3 |
Tags: AMP, accelerated mobile pages, mobile, amp project, google amp, amp wp, google, plugin
|
4 |
Donate link: https://www.paypal.me/Kaludi/5
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.7.3
|
7 |
+
Stable tag: 0.9.45.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 0.9.45.6 (31 March 2017) =
|
133 |
+
* Installation Process from welcome page was not working after WP Plugin DIR API change was fixed.
|
134 |
+
* WP Rocket Minifcation and Concatenation was not working, its fixed now.
|
135 |
+
* WP Rocket was tested properly to make sure everything is working fine.
|
136 |
+
|
137 |
= 0.9.45.5 (25 March 2017) =
|
138 |
* WP rocket conflict solved
|
139 |
* Cannot set property ‘innerHTML’ of null issue fixed
|
templates/features.php
CHANGED
@@ -1306,15 +1306,6 @@ function ampforwp_remove_js_script_cleantalk() {
|
|
1306 |
add_filter( 'amp_init', 'ampforwp_lazy_loading_plugins_compatibility' );
|
1307 |
function ampforwp_lazy_loading_plugins_compatibility() {
|
1308 |
|
1309 |
-
//WP Rocket
|
1310 |
-
add_filter( 'do_rocket_lazyload', '__return_false', PHP_INT_MAX );
|
1311 |
-
add_filter( 'do_rocket_lazyload_iframes', '__return_false', PHP_INT_MAX );
|
1312 |
-
if ( ! defined( 'DONOTMINIFYCSS' ) ) {
|
1313 |
-
define( 'DONOTMINIFYCSS', TRUE );
|
1314 |
-
}
|
1315 |
-
if ( ! defined( 'DONOTMINIFYJS' ) ) {
|
1316 |
-
define( 'DONOTMINIFYJS', TRUE );
|
1317 |
-
}
|
1318 |
// Disable HTTP protocol removing on script, link, img, srcset and form tags.
|
1319 |
remove_filter( 'rocket_buffer', '__rocket_protocol_rewrite', PHP_INT_MAX );
|
1320 |
remove_filter( 'wp_calculate_image_srcset', '__rocket_protocol_rewrite_srcset', PHP_INT_MAX );
|
1306 |
add_filter( 'amp_init', 'ampforwp_lazy_loading_plugins_compatibility' );
|
1307 |
function ampforwp_lazy_loading_plugins_compatibility() {
|
1308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1309 |
// Disable HTTP protocol removing on script, link, img, srcset and form tags.
|
1310 |
remove_filter( 'rocket_buffer', '__rocket_protocol_rewrite', PHP_INT_MAX );
|
1311 |
remove_filter( 'wp_calculate_image_srcset', '__rocket_protocol_rewrite_srcset', PHP_INT_MAX );
|