| @@ -2,15 +2,15 @@ | ||
| 2 | 2 | /* |
| 3 | 3 | Plugin Name: Github Embed |
| 4 | 4 | Plugin URI: https://wordpress.org/plugins/github-embed/ |
| 5 | 5 | Description: Paste the URL to a Github project into your posts or pages, and have the project information pulled in and displayed automatically |
| 6 | -Version: 2.1.0 | |
| 6 | +Version: 2.2.0 | |
| 7 | 7 | Author: Ademti Software Ltd. |
| 8 | 8 | Author URI: https://www.ademti-software.co.uk/ |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | - * Copyright (c) 2013 Ademti Software. All rights reserved. | |
| 12 | + * Copyright (c) 2013-2025 Ademti Software. All rights reserved. | |
| 13 | 13 | * |
| 14 | 14 | * Released under the GPL license v2 |
| 15 | 15 | * https://www.gnu.org/licenses/gpl-2.0.en.html |
| 16 | 16 | * |
| @@ -187,9 +187,9 @@ | ||
| 187 | 187 | * @return string |
| 188 | 188 | */ |
| 189 | 189 | private function process_template( $template, $data ) { |
| 190 | 190 | ob_start(); |
| 191 | - if ( ! locate_template( 'wp-github-oembed/' . $template, true ) ) { | |
| 191 | + if ( ! locate_template( 'wp-github-oembed/' . $template, true, false, ['data' => $data] ) ) { | |
| 192 | 192 | require_once 'templates/' . $template; |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | return ob_get_clean(); |