mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 08:39:02 +08:00
remove unused function
Signed-off-by: Andy Fragen <andy@thefragens.com>
This commit is contained in:
parent
e1fddb4d6f
commit
0b9d2fa35b
1 changed files with 0 additions and 21 deletions
|
@ -242,27 +242,6 @@ function set_slug_to_hashed() : void {
|
|||
$_POST['slug'] = explode( '-did--', $escaped_slug, 2 )[0] . '-' . Packages\get_did_hash( $did );
|
||||
}
|
||||
|
||||
/**
|
||||
* Hijack embedded info page.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function embedded_info_page() {
|
||||
// phpcs:disable HM.Security.NonceVerification.Recommended
|
||||
// This is a special case for the plugin information page.
|
||||
if ( ! isset( $_REQUEST['plugin'] ) || ! isset( $_REQUEST['tab'] ) || $_REQUEST['tab'] !== TAB_DIRECT ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If the plugin is not a FAIR package, do nothing.
|
||||
if ( ! preg_match( '/^did:(web|plc):.+$/', sanitize_text_field( wp_unslash( $_REQUEST['plugin'] ) ) ) ) {
|
||||
return;
|
||||
}
|
||||
// phpcs:enable
|
||||
|
||||
maybe_hijack_plugin_info();
|
||||
}
|
||||
|
||||
/**
|
||||
* Maybe hijack plugin info.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue