| @@ -1,12 +1,18 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * Jetpack_Flickr_Widget settings form output. |
| 4 | 4 | * |
| 5 | + * @html-template Jetpack_Flickr_Widget::form | |
| 5 | 6 | * @package automattic/jetpack |
| 6 | 7 | */ |
| 7 | 8 | |
| 8 | -//phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable | |
| 9 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 10 | + exit( 0 ); | |
| 11 | +} | |
| 12 | + | |
| 13 | +// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it. | |
| 14 | + | |
| 9 | 15 | ?> |
| 10 | 16 | <p> |
| 11 | 17 | <label> |
| 12 | 18 | <?php esc_html_e( 'Title:', 'jetpack' ); ?> |
| @@ -37,9 +43,9 @@ | ||
| 37 | 43 | </p> |
| 38 | 44 | <p> |
| 39 | 45 | <small> |
| 40 | 46 | <?php |
| 41 | - echo sprintf( | |
| 47 | + printf( | |
| 42 | 48 | wp_kses( |
| 43 | 49 | /* Translators: %s is the URL to an example Flickr RSS feed. */ |
| 44 | 50 | __( 'Leave the Flickr RSS URL field blank to display <a target="_blank" href="%s">interesting</a> Flickr photos.', 'jetpack' ), |
| 45 | 51 | array( |