| @@ -50,8 +50,12 @@ | ||
| 50 | 50 | |
| 51 | 51 | $attr = c_ws_plugin__s2member_utils_strings::trim_qts_deep((array)$attr); |
| 52 | 52 | $attr = shortcode_atts(array('file_download' => '', 'directive' => ''), $attr); |
| 53 | 53 | |
| 54 | + //260811 Validate directive. | |
| 55 | + if(!in_array($attr['directive'], array('', 'ip-forever', 'universal'), true)) | |
| 56 | + $attr['directive'] = ''; | |
| 57 | + | |
| 54 | 58 | foreach(array_keys(get_defined_vars()) as $__v) $__refs[$__v] =& $$__v; |
| 55 | 59 | do_action('ws_plugin__s2member_before_sc_get_key_after_shortcode_atts', get_defined_vars()); |
| 56 | 60 | unset($__refs, $__v); // Allow variables to be modified by reference. |
| 57 | 61 | |