| @@ -34,16 +34,8 @@ | ||
| 34 | 34 | * Entry point – hooked to admin_init. |
| 35 | 35 | */ |
| 36 | 36 | public static function maybe_resign_shortcodes() |
| 37 | 37 | { |
| 38 | - if (function_exists('wp_doing_ajax') && wp_doing_ajax()) { | |
| 39 | - return; | |
| 40 | - } | |
| 41 | - | |
| 42 | - if (!current_user_can('manage_options')) { | |
| 43 | - return; | |
| 44 | - } | |
| 45 | - | |
| 46 | 38 | if (!self::should_run()) { |
| 47 | 39 | return; |
| 48 | 40 | } |
| 49 | 41 | |