| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | function kirki_show_upgrade_notification( $plugin_data, $response ) { |
||
|
|
|||
| 25 | |||
| 26 | // Check "upgrade_notice". |
||
| 27 | if ( isset( $response->upgrade_notice ) && strlen( trim( $response->upgrade_notice ) ) > 0 ) : ?> |
||
| 28 | <style>.kirki-upgrade-notification {background-color:#d54e21;padding:10px;color:#f9f9f9;margin-top:10px;margin-bottom:10px;}.kirki-upgrade-notification + p {display:none;}</style> |
||
| 29 | <div class="kirki-upgrade-notification"> |
||
| 30 | <strong><?php esc_html_e( 'Important Upgrade Notice:', 'kirki' ); ?></strong> |
||
| 31 | <?php $upgrade_notice = wp_strip_all_tags( $response->upgrade_notice ); ?> |
||
| 32 | <?php echo esc_html( $upgrade_notice ); ?> |
||
| 33 | </div> |
||
| 34 | <?php |
||
| 39 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.