@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $contextual_shortcodes = self::get_contextual_shortcodes(); |
75 | 75 | $result = array(); |
76 | 76 | foreach ( $contextual_shortcodes as $type => $shortcodes ) { |
77 | - $result[ $type ] = array_keys( $shortcodes ); |
|
77 | + $result[$type] = array_keys( $shortcodes ); |
|
78 | 78 | } |
79 | 79 | return $result; |
80 | 80 | } |
@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | $with_tags = $args['conditional_check'] ? 3 : 2; |
116 | - if ( ! empty( $shortcodes[ $with_tags ][ $short_key ] ) ) { |
|
117 | - $tag = str_replace( '[' . $prefix, '', $shortcodes[0][ $short_key ] ); |
|
116 | + if ( ! empty( $shortcodes[$with_tags][$short_key] ) ) { |
|
117 | + $tag = str_replace( '[' . $prefix, '', $shortcodes[0][$short_key] ); |
|
118 | 118 | $tag = str_replace( ']', '', $tag ); |
119 | 119 | $tag = str_replace( chr( 194 ) . chr( 160 ), ' ', $tag ); |
120 | 120 | $tags = preg_split( '/\s+/', $tag, 2 ); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $tag = $tags[0]; |
123 | 123 | } |
124 | 124 | } else { |
125 | - $tag = $shortcodes[ $with_tags - 1 ][ $short_key ]; |
|
125 | + $tag = $shortcodes[$with_tags - 1][$short_key]; |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | return $tag; |