Skip to content

Commit

Permalink
bugfix - output
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniemuellerdesign committed Feb 26, 2024
1 parent 53450ca commit b80a486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"melaniemueller.design-localfonts/plugin.php": {
"version": "v0.0.1.7",
"version": "v0.0.1.8",
"package": "https://melaniemueller.design/development/melaniemueller.design-localfonts/melaniemueller.design-localfonts.zip",
"updateURL": "https://melaniemueller.design/development/melaniemueller.design-localfonts/info.json",
"requires": "6.3.2",
Expand Down
4 changes: 1 addition & 3 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Requires PHP: 5.6
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Update URI: https://melaniemueller.design/development/melaniemueller.design-localfonts/info.json
* Version: v0.0.1.7
* Version: v0.0.1.8
*/

/*add localfonts folder to wp-content*/
Expand Down Expand Up @@ -80,15 +80,13 @@ function custom_css_editor_page()
//output css in head
function custom_css_output()
{
if (current_user_can('manage_options')) {
$custom_css = get_option('custom_css');
$custom_css_removed_backslash = str_replace("\\", "", $custom_css);


if (!empty($custom_css)) {
echo '<style type="text/css">' . $custom_css_removed_backslash . '</style>';
}
}
}

add_action('wp_head', 'custom_css_output');
Expand Down

0 comments on commit b80a486

Please sign in to comment.