Code Duplication    Length = 11-12 lines in 3 locations

includes/general.php 3 locations

@@ 1061-1072 (lines=12) @@
1058
 *
1059
 * @since 1.10
1060
 */
1061
function pods_version_notice_wp () {
1062
    global $wp_version;
1063
?>
1064
    <div class="error fade">
1065
        <p>
1066
            <strong><?php _e( 'NOTICE', 'pods' ); ?>:</strong> Pods <?php echo esc_html( PODS_VERSION ); ?> <?php _e( 'requires a minimum of', 'pods' ); ?>
1067
            <strong>WordPress <?php echo esc_html( PODS_WP_VERSION_MINIMUM ); ?>+</strong> <?php _e( 'to function. You are currently running', 'pods' ); ?>
1068
            <strong>WordPress <?php echo esc_html( $wp_version ); ?></strong> - <?php _e( 'Please upgrade your WordPress to continue.', 'pods' ); ?>
1069
        </p>
1070
    </div>
1071
<?php
1072
}
1073
1074
/**
1075
 * Show WP notice if PHP version is incompatible
@@ 1081-1091 (lines=11) @@
1078
 *
1079
 * @since 1.10
1080
 */
1081
function pods_version_notice_php () {
1082
?>
1083
    <div class="error fade">
1084
        <p>
1085
            <strong><?php _e( 'NOTICE', 'pods' ); ?>:</strong> Pods <?php echo esc_html( PODS_VERSION ); ?> <?php _e( 'requires a minimum of', 'pods' ); ?>
1086
            <strong>PHP <?php echo esc_html( PODS_PHP_VERSION_MINIMUM ); ?>+</strong> <?php _e( 'to function. You are currently running', 'pods' ); ?>
1087
            <strong>PHP <?php echo esc_html( phpversion() ); ?></strong> - <?php _e( 'Please upgrade (or have your Hosting Provider upgrade it for you) your PHP version to continue.', 'pods' ); ?>
1088
        </p>
1089
    </div>
1090
<?php
1091
}
1092
1093
/**
1094
 * Show WP notice if MySQL version is incompatible
@@ 1100-1111 (lines=12) @@
1097
 *
1098
 * @since 1.10
1099
 */
1100
function pods_version_notice_mysql () {
1101
    global $wpdb;
1102
    $mysql = $wpdb->db_version();
1103
?>
1104
    <div class="error fade">
1105
        <p><strong><?php _e( 'NOTICE', 'pods' ); ?>:</strong> Pods <?php echo esc_html( PODS_VERSION ); ?> <?php _e( 'requires a minimum of', 'pods' ); ?>
1106
            <strong>MySQL <?php echo esc_html( PODS_MYSQL_VERSION_MINIMUM ); ?>+</strong> <?php _e( 'to function. You are currently running', 'pods' ); ?>
1107
            <strong>MySQL <?php echo esc_html( $mysql ); ?></strong> - <?php _e( 'Please upgrade (or have your Hosting Provider upgrade it for you) your MySQL version to continue.', 'pods' ); ?>
1108
        </p>
1109
    </div>
1110
<?php
1111
}
1112
1113
/**
1114
 * Check if a Function exists or File exists in Theme / Child Theme