WordPress.org

Make WordPress Core

Ticket #31776: 31776.4.diff

File 31776.4.diff, 604 bytes (added by obenland, 6 years ago)

Context for ID placeholder

  • src/wp-includes/widgets.php

     
    804804        $i = count($wp_registered_sidebars) + 1;
    805805
    806806        if ( empty( $args['id'] ) ) {
    807                 _doing_it_wrong( __FUNCTION__, sprintf( __( 'You should set %s in the arguments array.' ), 'id' ), '4.2.0' );
     807                /* translators: %s: the id argument */
     808                _doing_it_wrong( __FUNCTION__, sprintf( __( 'You should set %s in the arguments array.' ), '<code>id</code>' ), '4.2.0' );
    808809        }
    809810
    810811        $defaults = array(