Update WP and plugins
This commit is contained in:
parent
10a4713229
commit
1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions
|
@ -127,8 +127,8 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
|||
}
|
||||
}
|
||||
$id_base = $this->id_data['base'];
|
||||
$value = '';
|
||||
$post = wp_get_custom_css_post( $this->stylesheet );
|
||||
$value = '';
|
||||
$post = wp_get_custom_css_post( $this->stylesheet );
|
||||
if ( $post ) {
|
||||
$value = $post->post_content;
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
|||
$validity->add( 'illegal_markup', __( 'Markup is not allowed in CSS.' ) );
|
||||
}
|
||||
|
||||
if ( empty( $validity->errors ) ) {
|
||||
if ( ! $validity->has_errors() ) {
|
||||
$validity = parent::validate( $css );
|
||||
}
|
||||
return $validity;
|
||||
|
@ -180,9 +180,12 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
|||
$css = '';
|
||||
}
|
||||
|
||||
$r = wp_update_custom_css_post( $css, array(
|
||||
'stylesheet' => $this->stylesheet,
|
||||
) );
|
||||
$r = wp_update_custom_css_post(
|
||||
$css,
|
||||
array(
|
||||
'stylesheet' => $this->stylesheet,
|
||||
)
|
||||
);
|
||||
|
||||
if ( $r instanceof WP_Error ) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue