Git Product home page Git Product logo

dashboard-cleanup's People

Contributors

jessuppi avatar pauiglesias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dashboard-cleanup's Issues

PHP 8.1 incompatibility

Hi, I’ve just started testing WP with recently released PHP 8.1 and found that your plugin causes a fatal error:

PHP Fatal error:  Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class LittleBizzy\DashboardCleanup\Cleanup\Elements does not have a method "quickDraft" in \wp-includes\class-wp-hook.php:303
Stack trace:
#0 \wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#1 \wp-includes\plugin.php(470): WP_Hook->do_action(Array)
#2 \wp-admin\admin.php(175): do_action('admin_init')
#3 \wp-admin\index.php(10): require_once('...')
#4 {main}
  thrown in \wp-includes\class-wp-hook.php on line 303

Plugin triggers warning on PHP 8

Hi, after switching my local WP to PHP 8 I see following in logs:

Warning: Private methods cannot be final as they are never overridden by other classes in \wp-content\plugins\dashboard-cleanup-1.1.2\helpers\boot.php on line 50

Warning: Private methods cannot be final as they are never overridden by other classes in \wp-content\plugins\dashboard-cleanup-1.1.2\helpers\singleton.php on line 76

I suppose switching
final private function __clone() {}
to
final protected function __clone() {}
should solve the issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.