[wp-trac] [WordPress Trac] #43893: The maybe_create_table() function has two definitions

WordPress Trac noreply at wordpress.org
Sat Apr 28 14:22:56 UTC 2018


#43893: The maybe_create_table() function has two definitions
--------------------------+-----------------------------
 Reporter:  johnbillion   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  Awaiting Review
Component:  Database      |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 The `maybe_create_table()` function has two definitions:

 1. https://github.com/WordPress/wordpress-
 develop/blob/c71a898f784d8435c07bcf9ec9e30560dd3abe19/src/wp-
 admin/includes/upgrade.php#L2187-L2219
 2. https://github.com/WordPress/wordpress-
 develop/blob/c71a898f784d8435c07bcf9ec9e30560dd3abe19/src/wp-admin
 /install-helper.php#L40-L70

 The latter is contained within a `function_exists()` check, but this still
 means the function's behaviour can differ depending on which definition
 happens to load.

 The function is not used at all in WordPress core. It (they?) should
 probably be deprecated.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43893>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list