| @@ -47,13 +47,8 @@ | ||
| 47 | 47 | * @since 3.0.0 |
| 48 | 48 | * @param mixed $item Current item to output. |
| 49 | 49 | */ |
| 50 | 50 | public static function set_current_item( $item ) { |
| 51 | - if ( false === $item ) { | |
| 52 | - $item = apply_filters( 'wpupg_unset_current_item', $item ); | |
| 53 | - } else { | |
| 54 | - $item = apply_filters( 'wpupg_set_current_item', $item ); | |
| 55 | - } | |
| 56 | 51 | self::$current_item = $item; |
| 57 | 52 | } |
| 58 | 53 | |
| 59 | 54 | /** |
| @@ -64,9 +59,8 @@ | ||
| 64 | 59 | private static function load_shortcodes() { |
| 65 | 60 | $dirs = array( |
| 66 | 61 | WPUPG_DIR . 'includes/public/shortcodes/general', |
| 67 | 62 | WPUPG_DIR . 'includes/public/shortcodes/item', |
| 68 | - WPUPG_DIR . 'includes/public/shortcodes/special', | |
| 69 | 63 | ); |
| 70 | 64 | |
| 71 | 65 | foreach ( $dirs as $dir ) { |
| 72 | 66 | if ( ! is_dir( $dir ) ) { |
| @@ -93,9 +87,9 @@ | ||
| 93 | 87 | if ( ! self::$parsed ) { |
| 94 | 88 | self::parse_shortcodes(); |
| 95 | 89 | } |
| 96 | 90 | |
| 97 | - return apply_filters( 'wpupg_template_editor_shortcodes', self::$shortcodes ); | |
| 91 | + return self::$shortcodes; | |
| 98 | 92 | } |
| 99 | 93 | |
| 100 | 94 | /** |
| 101 | 95 | * Get the defaults for a specific shortcode. |