PluginProbe
Meow Gallery / 4.2.2
Meow Gallery v4.2.2
5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 All 157 releases
← All changes | common/admin.php +7 -10 4.2.6 → 4.2.2 View file →
@@ -4,10 +4,10 @@
4 4
5 5 class MeowCommon_Admin {
6 6
7 7 public static $loaded = false;
8 - public static $version = "3.7";
9 - public static $admin_version = "3.7";
8 + public static $version = "3.6";
9 + public static $admin_version = "3.6";
10 10
11 11 public $prefix; // prefix used for actions, filters (mfrh)
12 12 public $mainfile; // plugin main file (media-file-renamer.php)
13 13 public $domain; // domain used for translation (media-file-renamer)
@@ -24,10 +24,9 @@
24 24 new MeowCommon_Issues( $prefix, $mainfile, $domain );
25 25
26 26 // Create the Meow Apps Menu
27 27 add_action( 'admin_menu', array( $this, 'admin_menu_start' ) );
28 - $page = isset( $_GET["page"] ) ? sanitize_text_field( $_GET["page"] ) : null;
29 - if ( $page === 'meowapps-main-menu' ) {
28 + if ( isset( $_GET['page'] ) && $_GET['page'] === 'meowapps-main-menu' ) {
30 29 add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 100000, 1 );
31 30 }
32 31 }
33 32 MeowCommon_Admin::$loaded = true;
@@ -69,9 +68,9 @@
69 68 sprintf( __( '<a href="admin.php?page=%s_settings">Settings</a>', $this->domain ), $this->prefix ),
70 69 'license' =>
71 70 $this->is_registered() ?
72 71 ('<span style="color: #a75bd6;">' . __( 'Pro Version', $this->domain ) . '</span>') :
73 - ( $isIssue ? (sprintf( '<span style="color: #ff3434;">' . __( 'License Issue', $this->domain ), $this->prefix ) . '</span>') : (sprintf( '<span>' . __( '<a target="_blank" href="https://meowapps.com">Get the <u>Pro Version</u></a>', $this->domain ), $this->prefix ) . '</span>') ),
72 + ( $isIssue ? (sprintf( '<span style="color: #ff3434;">' . __( 'License Issue', $this->domain ), $this->prefix ) . '</span>') : (sprintf( '<span>' . __( '<a target="_blank" href="https://store.meowapps.com">Get the <u>Pro Version</u></a>', $this->domain ), $this->prefix ) . '</span>') ),
74 73 );
75 74 $links = array_merge( $new_links, $links );
76 75 }
77 76 return $links;
@@ -100,9 +99,9 @@
100 99 return;
101 100 }
102 101 $html = '<div class="notice notice-error">';
103 102 $html .= sprintf(
104 - __( '<p>It looks like you are using the free version of the plugin (<b>%s</b>) but a license for the Pro version was also found. The Pro version might have been replaced by the Free version during an update (might be caused by a temporarily issue). If it is the case, <b>please download it again</b> from the <a target="_blank" href="https://meowapps.com">Meow Store</a>. If you wish to continue using the free version and clear this message, click on this button.', $this->domain ),
103 + __( '<p>It looks like you are using the free version of the plugin (<b>%s</b>) but a license for the Pro version was also found. The Pro version might have been replaced by the Free version during an update (might be caused by a temporarily issue). If it is the case, <b>please download it again</b> from the <a target="_blank" href="https://store.meowapps.com">Meow Store</a>. If you wish to continue using the free version and clear this message, click on this button.', $this->domain ),
105 104 $this->nice_name_from_file( $this->mainfile ) );
106 105 $html .= '<p>
107 106 <form method="post" action="">
108 107 <input type="hidden" name="' . $this->prefix . '_reset_sub" value="true">
@@ -140,14 +139,13 @@
140 139 echo wp_kses_post( $html );
141 140 }
142 141
143 142 function is_registered() {
144 - $is_registered = apply_filters( $this->prefix . '_meowapps_is_registered', false, $this->prefix );
145 - return $is_registered;
143 + return apply_filters( $this->prefix . '_meowapps_is_registered', false, $this->prefix );
146 144 }
147 145
148 146 function get_phpinfo() {
149 - if ( !current_user_can( 'administrator' ) || !function_exists( 'phpinfo' ) ) {
147 + if ( !current_user_can( 'administrator' ) ) {
150 148 return;
151 149 }
152 150 ob_start();
153 151 // phpcs:disable WordPress.PHP.DevelopmentFunctions
@@ -163,9 +161,8 @@
163 161 $html = "<div id='meow-common-dashboard'></div>";
164 162 $html .= "<div style='height: 0; width: 0; overflow: hidden;' id='meow-common-phpinfo'>";
165 163 $html .= $this->get_phpinfo();
166 164 $html .= "</div>";
167 - $html = preg_replace("/<img[^>]+\>/i", "", $html);
168 165 echo wp_kses_post( $html );
169 166 }
170 167
171 168 function admin_footer_text( $current ) {