WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #28591, comment 1


Ignore:
Timestamp:
06/20/2014 12:01:50 AM (6 years ago)
Author:
sc0ttkclark
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28591, comment 1

    initial v1  
    1616
    1717// Check for default non-literals
    18 preg_match("| DEFAULT (\w*)|i", $cfields[strtolower($tablefield->Field)], $non_literal_matches);
     18if ( preg_match("| DEFAULT (\w*)|i", $cfields[strtolower($tablefield->Field)], $non_literal_matches) ) {
     19        if ( $tablefield->Default == $non_literal_matches[1] ) {
     20                $non_literal_matches = false;
     21        }
     22}
    1923
    2024// Is actual field type different from the field type in query?