File manager - Edit - /usr/local/cpanel/install/WPDashboard.pm
Back
# Copyright 2026 WebPros International, LLC # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited. package Install::WPDashboard; use cPstrict; use parent qw( Cpanel::Task ); =encoding utf-8 =head1 NAME Install::WPDashboard - remove the WP Dashboard WHM plugin =head1 SYNOPSIS # Discovered and run automatically by the install/update task runner. =head1 DESCRIPTION Ensures the WP Dashboard WHM plugin is unregistered from AppConfig during installs and updates. This is v136-only behavior. v137 and later register the plugin instead, by calling C<Whostmgr::WPDashboard::Setup::ensure_registered()> here. When merging this branch forward, keep the C<ensure_registered()> call on the receiving branch. =over 1 =item Type: Fresh Install, Sanity =item Frequency: always =item EOL: never =back =cut our $VERSION = '1.0'; exit __PACKAGE__->runtask() unless caller; =head1 METHODS =head2 new() Create the install task and order it after the built-in C<post> task. =cut sub new ($proto) { my $self = $proto->SUPER::new(); $self->set_internal_name('wp_dashboard_plugin_registration'); $self->set_display_name('WP Dashboard WHM plugin removal'); $self->add_dependencies(qw( post )); return $self; } =head2 perform() Remove the WP Dashboard WHM plugin if its AppConfig entry exists. =cut sub perform ($self) { require Whostmgr::WPDashboard::Setup; Whostmgr::WPDashboard::Setup::ensure_unregistered(); return 1; } 1;
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings