[buddypress-trac] [BuddyPress Trac] #8490: Helper to get a REST API object URL from a component.

buddypress-trac noreply at wordpress.org
Sun Jun 20 16:20:44 UTC 2021


#8490: Helper to get a REST API object URL from a component.
-------------------------------------+--------------------------
 Reporter:  espellcaste              |       Owner:  espellcaste
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  9.0.0
Component:  REST API                 |     Version:  8.0.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |
-------------------------------------+--------------------------
Changes (by imath):

 * keywords:  has-patch => has-patch needs-refresh


Comment:

 Thanks @espellcaste

 Could you improve the patch a bit to "fully" deprecate `` and make it use
 ``. See /src/deprecated/8.0.php` for examples.


 eg:

 {{{
 function bp_rest_get_user_url( $user_id ) {
         _deprecated_function( __FUNCTION__, '9.0.0',
 'bp_rest_get_object_url( $user_id, \'members\' )' );
         return bp_rest_get_object_url( $user_id, 'members' );
 }
 }}}

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


More information about the buddypress-trac mailing list