Code Duplication    Length = 11-12 lines in 3 locations

includes/general.php 3 locations

@@ 1001-1012 (lines=12) @@
998
 *
999
 * @since 1.10
1000
 */
1001
function pods_version_notice_wp () {
1002
    global $wp_version;
1003
?>
1004
    <div class="error fade">
1005
        <p>
1006
            <strong><?php _e( 'NOTICE', 'pods' ); ?>:</strong> Pods <?php echo esc_html( PODS_VERSION ); ?> <?php _e( 'requires a minimum of', 'pods' ); ?>
1007
            <strong>WordPress <?php echo esc_html( PODS_WP_VERSION_MINIMUM ); ?>+</strong> <?php _e( 'to function. You are currently running', 'pods' ); ?>
1008
            <strong>WordPress <?php echo esc_html( $wp_version ); ?></strong> - <?php _e( 'Please upgrade your WordPress to continue.', 'pods' ); ?>
1009
        </p>
1010
    </div>
1011
<?php
1012
}
1013
1014
/**
1015
 * Show WP notice if PHP version is incompatible
@@ 1021-1031 (lines=11) @@
1018
 *
1019
 * @since 1.10
1020
 */
1021
function pods_version_notice_php () {
1022
?>
1023
    <div class="error fade">
1024
        <p>
1025
            <strong><?php _e( 'NOTICE', 'pods' ); ?>:</strong> Pods <?php echo esc_html( PODS_VERSION ); ?> <?php _e( 'requires a minimum of', 'pods' ); ?>
1026
            <strong>PHP <?php echo esc_html( PODS_PHP_VERSION_MINIMUM ); ?>+</strong> <?php _e( 'to function. You are currently running', 'pods' ); ?>
1027
            <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' ); ?>
1028
        </p>
1029
    </div>
1030
<?php
1031
}
1032
1033
/**
1034
 * Show WP notice if MySQL version is incompatible
@@ 1040-1051 (lines=12) @@
1037
 *
1038
 * @since 1.10
1039
 */
1040
function pods_version_notice_mysql () {
1041
    global $wpdb;
1042
    $mysql = $wpdb->db_version();
1043
?>
1044
    <div class="error fade">
1045
        <p><strong><?php _e( 'NOTICE', 'pods' ); ?>:</strong> Pods <?php echo esc_html( PODS_VERSION ); ?> <?php _e( 'requires a minimum of', 'pods' ); ?>
1046
            <strong>MySQL <?php echo esc_html( PODS_MYSQL_VERSION_MINIMUM ); ?>+</strong> <?php _e( 'to function. You are currently running', 'pods' ); ?>
1047
            <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' ); ?>
1048
        </p>
1049
    </div>
1050
<?php
1051
}
1052
1053
/**
1054
 * Check if a Function exists or File exists in Theme / Child Theme