acceptance.php
11 years ago
akismet.php
11 years ago
captcha.php
11 years ago
checkbox.php
11 years ago
date.php
11 years ago
file.php
11 years ago
flamingo.php
11 years ago
jetpack.php
12 years ago
listo.php
12 years ago
number.php
11 years ago
quiz.php
11 years ago
response.php
11 years ago
select.php
11 years ago
submit.php
11 years ago
text.php
11 years ago
textarea.php
11 years ago
jetpack.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | add_action( 'wpcf7_admin_notices', 'wpcf7_jetpack_admin_notices' ); |
| 4 | |
| 5 | function wpcf7_jetpack_admin_notices() { |
| 6 | global $wpdb; |
| 7 | |
| 8 | if ( ! class_exists( 'Jetpack' ) |
| 9 | || ! Jetpack::is_module( 'contact-form' ) |
| 10 | || ! in_array( 'contact-form', Jetpack::get_active_modules() ) ) |
| 11 | return; |
| 12 | |
| 13 | $q = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_old_cf7_unit_id'"; |
| 14 | |
| 15 | if ( ! $wpdb->get_var( $q ) ) |
| 16 | return; |
| 17 | |
| 18 | $url = 'http://contactform7.com/jetpack-overrides-contact-forms/'; |
| 19 | ?> |
| 20 | <div class="error"> |
| 21 | <p><?php echo sprintf( __( '<strong>Jetpack may cause problems for other plugins in certain cases.</strong> <a href="%s" target="_blank">See how to avoid it.</a>', 'contact-form-7' ), $url ); ?></p> |
| 22 | </div> |
| 23 | <?php |
| 24 | } |
| 25 | |
| 26 | ?> |