| @@ -68,12 +68,11 @@ | ||
| 68 | 68 | * |
| 69 | 69 | * @return array |
| 70 | 70 | */ |
| 71 | 71 | public static function get_contextual_codes() { |
| 72 | - $contextual_shortcodes = self::get_contextual_shortcodes(); | |
| 73 | - $result = array(); | |
| 72 | + $result = array(); | |
| 74 | 73 | |
| 75 | - foreach ( $contextual_shortcodes as $type => $shortcodes ) { | |
| 74 | + foreach ( self::get_contextual_shortcodes() as $type => $shortcodes ) { | |
| 76 | 75 | $result[ $type ] = array_keys( $shortcodes ); |
| 77 | 76 | } |
| 78 | 77 | |
| 79 | 78 | return $result; |