wp/wp-admin/install-helper.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 9 177826044cd9
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
   152  *      Default
   152  *      Default
   153  *      Extra
   153  *      Extra
   154  *
   154  *
   155  * @since 1.0.0
   155  * @since 1.0.0
   156  *
   156  *
       
   157  * @global wpdb $wpdb WordPress database abstraction object.
       
   158  *
   157  * @param string $table_name Table name
   159  * @param string $table_name Table name
   158  * @param string $col_name Column name
   160  * @param string $col_name   Column name
   159  * @param string $col_type Column type
   161  * @param string $col_type   Column type
   160  * @param bool $is_null Optional. Check is null.
   162  * @param bool   $is_null    Optional. Check is null.
   161  * @param mixed $key Optional. Key info.
   163  * @param mixed  $key        Optional. Key info.
   162  * @param mixed $default Optional. Default value.
   164  * @param mixed  $default    Optional. Default value.
   163  * @param mixed $extra Optional. Extra value.
   165  * @param mixed  $extra      Optional. Extra value.
   164  * @return bool True, if matches. False, if not matching.
   166  * @return bool True, if matches. False, if not matching.
   165  */
   167  */
   166 function check_column($table_name, $col_name, $col_type, $is_null = null, $key = null, $default = null, $extra = null) {
   168 function check_column($table_name, $col_name, $col_type, $is_null = null, $key = null, $default = null, $extra = null) {
   167 	global $wpdb;
   169 	global $wpdb;
   168 	$diffs = 0;
   170 	$diffs = 0;