Skip to content

Commit

Permalink
Fix WP 5.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Feb 12, 2022
1 parent 83e0eff commit ac1411f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions highlight-text.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Plugin Name: Highlight Text
* Plugin URI: https://github.com/Mamaduka/highlight
* Description: Text highligher for the Block Editor
* Version: 1.1.0
* Requires at least: 5.5
* Version: 1.2.0
* Requires at least: 5.7
* Requires PHP: 5.6
* Author: George Mamadashvili
* Author URI: https://mamaduka.com/
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
=== Highlight Text ===
Contributors: mamaduka
Tags: highlight, format, block editor, gutenberg
Requires at least: 5.5
Requires at least: 5.7
Tested up to: 5.6
Stable tag: 1.1.0
Stable tag: 1.2.0
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -22,6 +22,10 @@ Clickety. Click. Highlight.

== Changelog ==

= 1.2.0 =
* Bumps minimum required WP version to 5.7.
* Make plugin compatible with WP 5.9.

= 1.1.0 =
* Bumps minimum required WP version to 5.5.
* Updates button icon.
Expand Down
6 changes: 3 additions & 3 deletions src/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { toggleFormat } from '@wordpress/rich-text';
import { Button, ColorPalette, Dropdown, Fill } from '@wordpress/components';
import { Button, ColorPalette, Dropdown, Fill, ToolbarButton } from '@wordpress/components';

/**
* Internal dependencies
Expand Down Expand Up @@ -38,13 +38,13 @@ export default function HighlightEdit( { activeAttributes, value, onChange } ) {
}

return (
<Fill name="RichText.ToolbarControls.text-color">
<Fill name="RichText.ToolbarControls.link">
<Dropdown
className="highlight-color"
contentClassName="highlight-color__popover"
position="bottom right"
renderToggle={ ( { isOpen, onToggle } ) => (
<Button
<ToolbarButton
icon={ icon }
label="Highlight Color"
aria-haspopup="true"
Expand Down

0 comments on commit ac1411f

Please sign in to comment.