| @@ -1,9 +1,14 @@ | ||
| 1 | 1 | <div class="warning notice"> |
| 2 | 2 | <p> |
| 3 | 3 | <?php |
| 4 | - printf( | |
| 5 | - __( '<strong>BetterDocs Free 2.5</strong> requires <strong>BetterDocs Pro 2.5</strong> plugin to be installed. Please <strong><em>update</em></strong> the BetterDocs Pro plugin for a smooth experience.', 'betterdocs' ), //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaping Not Needed Here Because, This Is A Static String With Html Tags, Which Are Required | |
| 4 | + | |
| 5 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 6 | + exit; | |
| 7 | +} | |
| 8 | +printf( | |
| 9 | + /* translators: %s: installed BetterDocs Pro version */ | |
| 10 | + __( 'You are using <strong>BetterDocs Pro %s</strong>. BetterDocs Analytics requires <strong>BetterDocs Pro 4.0.0</strong> or newer — please <strong><em>update</em></strong> BetterDocs Pro for a smooth experience.', 'betterdocs' ), //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Static string with required HTML tags; version arg is escaped. | |
| 6 | 11 | esc_html( $version ) |
| 7 | 12 | ); |
| 8 | 13 | ?> |
| 9 | 14 | </p> |