[wp-trac] [WordPress Trac] #41121: Consistency of the _deprecated_function() calls and related documentation.

WordPress Trac noreply at wordpress.org
Fri Jun 23 22:32:46 UTC 2017


#41121: Consistency of the _deprecated_function() calls and related documentation.
----------------------------+---------------------------
 Reporter:  jrf             |       Owner:  DrewAPicture
     Type:  task (blessed)  |      Status:  reviewing
 Priority:  normal          |   Milestone:  4.9
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+---------------------------

Comment (by SergeyBiryukov):

 > In this case, we're trying to slot some hardcoded English text into a
 translatable string, which seems less than ideal and doesn't have a
 precedent AFAIK.

 We could probably do something like this, but it still seems unnecessary
 complicated to me:
 {{{
 _deprecated_function( __METHOD__, '4.2.0', sprintf(
         /* translators: %s: 'customize_dynamic_setting_args' */
         __( 'the %s filter' ),
         'customize_dynamic_setting_args'
 ) );
 }}}

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


More information about the wp-trac mailing list