Code Duplication    Length = 11-12 lines in 3 locations

includes/general.php 3 locations

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