PluginProbe
WP Ultimate Post Grid / 3.0.0
WP Ultimate Post Grid v3.0.0
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | includes/public/class-wpupg-template-shortcodes.php +1 -7 4.1.1 → 3.0.0 View file →
@@ -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.