AMP for WP – Accelerated Mobile Pages - Version 0.9.45.1

Version Description

(19 March 2017) = * Post 0.9.45 bugs fixed and released as an urgent update.

Download this release

Release Info

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

Code changes from version 0.9.45 to 0.9.45.1

Files changed (2) hide show
  1. accelerated-moblie-pages.php +4 -11
  2. readme.txt +4 -1
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
 
@@ -136,18 +136,11 @@ function ampforwp_parent_plugin_check() {
136
  * Load Files only in the backend
137
  * As we don't need plugin activation code to run everytime the site loads
138
  */
139
- require ABSPATH .'wp-includes/pluggable.php';
140
- function ampforwp_get_user_role( $user = null ) {
141
- $user = $user ? new WP_User( $user ) : wp_get_current_user();
142
- return $user->roles ? $user->roles[0] : false;
143
- }
144
- $user_role = ampforwp_get_user_role();
145
-
146
- if ( $user_role === 'administrator' ) {
147
 
148
  // Include Welcome page only on Admin pages
149
  require AMPFORWP_PLUGIN_DIR .'/includes/welcome.php';
150
-
151
  add_action('init','ampforwp_plugin_notice');
152
  function ampforwp_plugin_notice() {
153
 
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.1
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.1');
20
  // any changes to AMP_QUERY_VAR should be refelected here
21
  define('AMPFORWP_AMP_QUERY_VAR', apply_filters( 'amp_query_var', 'amp' ) );
22
 
136
  * Load Files only in the backend
137
  * As we don't need plugin activation code to run everytime the site loads
138
  */
139
+ if ( is_admin() ) {
 
 
 
 
 
 
 
140
 
141
  // Include Welcome page only on Admin pages
142
  require AMPFORWP_PLUGIN_DIR .'/includes/welcome.php';
143
+
144
  add_action('init','ampforwp_plugin_notice');
145
  function ampforwp_plugin_notice() {
146
 
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/5
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
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,9 @@ You can contact me using this url: http://ampforwp.com/contact/
129
 
130
  == Changelog ==
131
 
 
 
 
132
  = 0.9.45 (18 March 2017) =
133
  * View more details at https://ampforwp.com/0-9-45-released-compatibility-rtl-53rd-update/
134
  * W3Total cache compatibility added
4
  Donate link: https://www.paypal.me/Kaludi/5
5
  Requires at least: 3.0
6
  Tested up to: 4.7.2
7
+ Stable tag: 0.9.45.1
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.1 (19 March 2017) =
133
+ * Post 0.9.45 bugs fixed and released as an urgent update.
134
+
135
  = 0.9.45 (18 March 2017) =
136
  * View more details at https://ampforwp.com/0-9-45-released-compatibility-rtl-53rd-update/
137
  * W3Total cache compatibility added