Jump statements should not be followed by other statements (there were 5 lingering).
See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31100 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
da9057fd6d
commit
0522fcb3f9
@ -1896,7 +1896,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
|||||||
switch ( $update->type ) {
|
switch ( $update->type ) {
|
||||||
case 'core':
|
case 'core':
|
||||||
return 'WordPress'; // Not translated
|
return 'WordPress'; // Not translated
|
||||||
break;
|
|
||||||
case 'theme':
|
case 'theme':
|
||||||
$theme = wp_get_theme( $update->slug );
|
$theme = wp_get_theme( $update->slug );
|
||||||
if ( $theme->exists() )
|
if ( $theme->exists() )
|
||||||
|
@ -556,22 +556,22 @@ function wp_kses_allowed_html( $context = '' ) {
|
|||||||
case 'post':
|
case 'post':
|
||||||
/** This filter is documented in wp-includes/kses.php */
|
/** This filter is documented in wp-includes/kses.php */
|
||||||
return apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context );
|
return apply_filters( 'wp_kses_allowed_html', $allowedposttags, $context );
|
||||||
break;
|
|
||||||
case 'user_description':
|
case 'user_description':
|
||||||
case 'pre_user_description':
|
case 'pre_user_description':
|
||||||
$tags = $allowedtags;
|
$tags = $allowedtags;
|
||||||
$tags['a']['rel'] = true;
|
$tags['a']['rel'] = true;
|
||||||
/** This filter is documented in wp-includes/kses.php */
|
/** This filter is documented in wp-includes/kses.php */
|
||||||
return apply_filters( 'wp_kses_allowed_html', $tags, $context );
|
return apply_filters( 'wp_kses_allowed_html', $tags, $context );
|
||||||
break;
|
|
||||||
case 'strip':
|
case 'strip':
|
||||||
/** This filter is documented in wp-includes/kses.php */
|
/** This filter is documented in wp-includes/kses.php */
|
||||||
return apply_filters( 'wp_kses_allowed_html', array(), $context );
|
return apply_filters( 'wp_kses_allowed_html', array(), $context );
|
||||||
break;
|
|
||||||
case 'entities':
|
case 'entities':
|
||||||
/** This filter is documented in wp-includes/kses.php */
|
/** This filter is documented in wp-includes/kses.php */
|
||||||
return apply_filters( 'wp_kses_allowed_html', $allowedentitynames, $context);
|
return apply_filters( 'wp_kses_allowed_html', $allowedentitynames, $context);
|
||||||
break;
|
|
||||||
case 'data':
|
case 'data':
|
||||||
default:
|
default:
|
||||||
/** This filter is documented in wp-includes/kses.php */
|
/** This filter is documented in wp-includes/kses.php */
|
||||||
|
Loading…
Reference in New Issue
Block a user