* Display a notice about missing dependencies. * * @since 1.0.1 */
()
| 18 | * @since 1.0.1 |
| 19 | */ |
| 20 | function display_missing_dependencies_notice() { |
| 21 | $message = sprintf( |
| 22 | /* translators: %s: documentation URL */ |
| 23 | __( 'Shiny Code is missing required dependencies. <a href="%s" target="_blank" rel="noopener noreferer">Learn more.</a>', 'shiny-code' ), |
| 24 | 'https://github.com/cedaro/shiny-code#installation' |
| 25 | ); |
| 26 | |
| 27 | printf( |
| 28 | '<div class="shiny-code-compatibility-notice notice notice-error"><p>%s</p></div>', |
| 29 | wp_kses( |
| 30 | $message, |
| 31 | [ |
| 32 | 'a' => [ |
| 33 | 'href' => true, |
| 34 | 'rel' => true, |
| 35 | 'target' => true, |
| 36 | ], |
| 37 | ] |
| 38 | ) |
| 39 | ); |
| 40 | } |
nothing calls this directly
no outgoing calls
no test coverage detected