Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
fix fatal PHP exception issue related to legacy custom CSS
Browse files Browse the repository at this point in the history
closes #538
closes #539
  • Loading branch information
dsifford committed Feb 1, 2019
1 parent 9695f3e commit 728c75f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/academic-bloggers-toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ function uninstall() {
function refactor_options() {
$options = get_option( ABT_OPTIONS_KEY );
if ( version_compare( ABT_VERSION, $options['VERSION'] ?? '0', '>' ) ) {
// Move custom css to customizer if it exists.
if ( ! empty( $options['custom_css'] ) ) {
wp_update_custom_css_post(
wp_get_custom_css_post() . PHP_EOL .
wp_kses( $options['custom_css'], [ "\'", '\"' ] )
);
}
$new_options = [
'VERSION' => ABT_VERSION,
'citation_style' => [
Expand Down

0 comments on commit 728c75f

Please # to comment.