[wp-trac] [WordPress Trac] #44374: Remove deprecated contact methods

WordPress Trac noreply at wordpress.org
Wed Jun 20 02:21:21 UTC 2018


#44374: Remove deprecated contact methods
----------------------------+------------------------------
 Reporter:  butterflymedia  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Users           |     Version:  4.9.6
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:
----------------------------+------------------------------

Comment (by birgire):

 Replying to [comment:3 butterflymedia]:
 > And what is [23588] doing? Why is it checking
 `get_site_option('initial_db_version')`? What is that version for?

 As I understand it:

 {{{$wp_db_version}}}, defined in {{{wp-includes/version.php}}}, is the
 latest committed revision number from the WordPress Trac, for changes that
 matters to the database schema.

 The {{{initial_db_version}}} option stores the value of
 {{{$wp_db_version}}} when the WordPress is installed.

 So checking {{{get_site_option('initial_db_version') < 23588 }}} is to
 ensure ''backward compatibility'', that only activates these deprecated
 user contacts, for installs made before the deprecated change was made
 when {{{$wp_db_version}}} was {{{23588}}}.

 ps: I hope I'm not misunderstanding the ticket, but I think it would be
 helpful to refer to the core code that should be removed. Thanks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44374#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list