| @@ -34,8 +34,16 @@ | ||
| 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 | + | |
| 38 | 46 | if (!self::should_run()) { |
| 39 | 47 | return; |
| 40 | 48 | } |
| 41 | 49 | |