WordPress.org

Make WordPress Core

Changeset 35428


Ignore:
Timestamp:
10/29/2015 10:31:31 AM (6 years ago)
Author:
pento
Message:

Shortcodes: Tweak the error messages added in [34745].

See #34090.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/shortcodes.php

    r34933 r35428  
    9191
    9292    if ( '' == trim( $tag ) ) {
    93         $message = __( 'Invalid shortcode name. Empty name given.' );
     93        $message = __( 'Invalid shortcode name: Empty name given.' );
    9494        _doing_it_wrong( __FUNCTION__, $message, '4.4.0' );
    9595        return;
     
    9797
    9898    if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20]@', $tag ) ) {
    99         $message = sprintf( __( 'Invalid shortcode name: %s  Do not use spaces or reserved chars: & / < > [ ]' ), $tag );
     99        $message = sprintf( __( 'Invalid shortcode name: %s. Do not use spaces or reserved characters: & / < > [ ]' ), $tag );
    100100        _doing_it_wrong( __FUNCTION__, $message, '4.4.0' );
    101101        return;
Note: See TracChangeset for help on using the changeset viewer.