v1.6.9
This commit is contained in:
parent
1ff471299e
commit
7379505d20
1 changed files with 912 additions and 139 deletions
|
|
@ -24,6 +24,18 @@ class Dashboard_Page {
|
|||
*/
|
||||
public const PAGE_SLUG = 'robotstxt-2fa-dashboard';
|
||||
|
||||
/**
|
||||
* Brand SVG menu icon (shield with keyhole) as a base64 data URI.
|
||||
*
|
||||
* WordPress core renders base64-encoded SVG data URIs natively in admin
|
||||
* menus (centered at 20px via the .wp-menu-image.svg CSS class), which
|
||||
* keeps the icon crisp and independent of the Dashicons font while
|
||||
* remaining fully backward compatible.
|
||||
*
|
||||
* @since 1.6.9
|
||||
*/
|
||||
public const MENU_ICON = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIiByb2xlPSJpbWciIGFyaWEtaGlkZGVuPSJ0cnVlIiBmb2N1c2FibGU9ImZhbHNlIj48cGF0aCBmaWxsPSIjMDM4N2M5IiBkPSJNMTAgMSAxOCAzLjl2NS4zYzAgNS40LTMuMyA4LjYtOCA5LjgtNC43LTEuMi04LTQuNC04LTkuOFYzLjlaIi8+PGNpcmNsZSBjeD0iMTAiIGN5PSI4IiByPSIyLjIiIGZpbGw9IiNmZmVmZDQiLz48cGF0aCBmaWxsPSIjZmZlZmQ0IiBkPSJNOC44IDkuOSA3LjYgMTMuN2g0LjhMMTEuMiA5LjlaIi8+PC9zdmc+';
|
||||
|
||||
/**
|
||||
* Failed attempts log.
|
||||
*
|
||||
|
|
@ -108,7 +120,7 @@ class Dashboard_Page {
|
|||
'manage_options',
|
||||
self::PAGE_SLUG,
|
||||
array( $this, 'render_page' ),
|
||||
'dashicons-shield'
|
||||
self::MENU_ICON
|
||||
);
|
||||
|
||||
add_submenu_page(
|
||||
|
|
|
|||
Loading…
Reference in a new issue