Make WordPress Core

Ticket #34249: 34249.patch

File 34249.patch, 2.6 KB (added by pavelevap, 9 years ago)
  • src/wp-includes/post-functions.php

     
    32193219                foreach ( $postarr['tax_input'] as $taxonomy => $tags ) {
    32203220                        $taxonomy_obj = get_taxonomy($taxonomy);
    32213221                        if ( ! $taxonomy_obj ) {
    3222                                 _doing_it_wrong( __FUNCTION__, sprintf( __( 'Invalid taxonomy: %s' ), $taxonomy ), '4.4.0' );
     3222                                _doing_it_wrong( __FUNCTION__, sprintf( __( 'Invalid taxonomy: %s.' ), $taxonomy ), '4.4.0' );
    32233223                                continue;
    32243224                        }
    32253225
  • src/wp-includes/rest-api/rest-functions.php

     
    5252                 * and namespace indexes. If you really need to register a
    5353                 * non-namespaced route, call `WP_REST_Server::register_route` directly.
    5454                 */
    55                 _doing_it_wrong( 'register_rest_route', 'Routes must be namespaced with plugin name and version', 'WPAPI-2.0' );
     55                _doing_it_wrong( 'register_rest_route', 'Routes must be namespaced with plugin name and version.', '4.4.0' );
    5656
    5757                $full_route = '/' . trim( $route, '/' );
    5858        }
  • src/wp-includes/shortcodes.php

     
    9090        global $shortcode_tags;
    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;
    9696        }
    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 chars: & / < > [ ].' ), $tag );
    100100                _doing_it_wrong( __FUNCTION__, $message, '4.4.0' );
    101101                return;
    102102        }
     
    314314        $attr = shortcode_parse_atts( $m[3] );
    315315
    316316        if ( ! is_callable( $shortcode_tags[ $tag ] ) ) {
    317                 $message = sprintf( __( 'Attempting to parse a shortcode without a valid callback: %s' ), $tag );
    318                 _doing_it_wrong( __FUNCTION__, $message, '4.3.0' );
     317                $message = sprintf( __( 'Attempting to parse a shortcode without a valid callback: %s.' ), $tag );
     318                _doing_it_wrong( 'add_shortcode', $message, '4.3.0' );
    319319                return $m[0];
    320320        }
    321321