[buddypress-trac] [BuddyPress Trac] #8687: Deprecated code is never loaded

buddypress-trac noreply at wordpress.org
Tue Jul 26 13:31:14 UTC 2022


#8687: Deprecated code is never loaded
------------------------------+---------------------
 Reporter:  imath             |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  high              |   Milestone:  11.0.0
Component:  Core              |     Version:  2.7
 Severity:  major             |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13304" 13304]:
 {{{
 #!CommitTicketReference repository="" revision="13304"
 Start using a new strategy about deprecated functions management

 The main goal of this commit is to change the way we load the files
 containing deprecated functions. This files are located into the `src/bp-
 core/deprecated/` directory and there's one file for each version of
 BuddyPress we created to store the deprecate functions.

 We noticed that these files were not necessarily loaded although they
 should have. This case happens to all users who firstly installed
 BuddyPress when its version was upper than 2.7.

 From now on, here's how deprecated code will eventually load into your
 BuddyPress installation:
 - First installs won't load deprecated code.
 - Updated installs will load the **2 latest BuddyPress versions deprecated
 code**.
 - Defining the `BP_IGNORE_DEPRECATED` constant to `true` will change the 2
 above points behavior ignoring any BuddyPress versions deprecated code.
 - Defining the `BP_IGNORE_DEPRECATED` constant to `false` will change the
 2 first points behavior loading **all** BuddyPress versions deprecated
 code.

 Props djpaul, dcavins.

 Fixes #8687
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8687#comment:13>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list