Ticket #34249: 34249.patch
File 34249.patch, 2.6 KB (added by , 9 years ago) |
---|
-
src/wp-includes/post-functions.php
3219 3219 foreach ( $postarr['tax_input'] as $taxonomy => $tags ) { 3220 3220 $taxonomy_obj = get_taxonomy($taxonomy); 3221 3221 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' ); 3223 3223 continue; 3224 3224 } 3225 3225 -
src/wp-includes/rest-api/rest-functions.php
52 52 * and namespace indexes. If you really need to register a 53 53 * non-namespaced route, call `WP_REST_Server::register_route` directly. 54 54 */ 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' ); 56 56 57 57 $full_route = '/' . trim( $route, '/' ); 58 58 } -
src/wp-includes/shortcodes.php
90 90 global $shortcode_tags; 91 91 92 92 if ( '' == trim( $tag ) ) { 93 $message = __( 'Invalid shortcode name. 93 $message = __( 'Invalid shortcode name. Empty name given.' ); 94 94 _doing_it_wrong( __FUNCTION__, $message, '4.4.0' ); 95 95 return; 96 96 } 97 97 98 98 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 ); 100 100 _doing_it_wrong( __FUNCTION__, $message, '4.4.0' ); 101 101 return; 102 102 } … … 314 314 $attr = shortcode_parse_atts( $m[3] ); 315 315 316 316 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' ); 319 319 return $m[0]; 320 320 } 321 321