PluginProbe
Sharing Image / 3.7
Sharing Image v3.7
3.10 trunk 2.0 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0 3.1 3.2 3.3 All 29 releases
← All changes | classes/class-premium.php +0 -8 trunk3.7 View file →
@@ -65,12 +65,8 @@
65 65 if ( false === $check ) {
66 66 wp_send_json_error( __( 'Invalid security token. Please reload the page and try again.', 'sharing-image' ), 403 );
67 67 }
68 68
69 - if ( ! current_user_can( 'manage_options' ) ) {
70 - wp_send_json_error( __( 'Sorry, you do not have permission to manage options for this site.', 'sharing-image' ), 403 );
71 - }
72 -
73 69 if ( empty( $_POST['sharing_image_key'] ) ) {
74 70 wp_send_json_error( __( 'Premium key is undefined.', 'sharing-image' ), 400 );
75 71 }
76 72
@@ -126,12 +122,8 @@
126 122 $check = check_ajax_referer( Settings::SETTINGS_NONCE, 'sharing_image_nonce', false );
127 123
128 124 if ( false === $check ) {
129 125 wp_send_json_error( __( 'Invalid security token. Please reload the page and try again.', 'sharing-image' ), 403 );
130 - }
131 -
132 - if ( ! current_user_can( 'manage_options' ) ) {
133 - wp_send_json_error( __( 'Sorry, you do not have permission to manage options for this site.', 'sharing-image' ), 403 );
134 126 }
135 127
136 128 // Remove license verification event.
137 129 wp_unschedule_hook( self::EVENT_PREMIUM );