Git Product home page Git Product logo

disable-embeds's People

Contributors

jessuppi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

disable-embeds'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 Error: Call to undefined method LittleBizzy\DisableEmbeds\Core\Core::queryVar() in \wp-content\plugins\disable-embeds-1.3.0\embeds\hooks.php:68
Stack trace:
#0 \wp-includes\class-wp-hook.php(303): LittleBizzy\DisableEmbeds\Embeds\Hooks->init('')
#1 \wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#2 \wp-includes\plugin.php(470): WP_Hook->do_action(Array)
#3 \wp-settings.php(578): do_action('init')
#4 \wp-config.php(100): require_once('...')
#5 \wp-load.php(50): require_once('...')
#6 \wp-blog-header.php(13): require_once('...')
#7 \index.php(17): require('...')
#8 {main}
  thrown in \wp-content\plugins\disable-embeds-1.3.0\embeds\hooks.php on line 68

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\disable-embeds-1.3.0\helpers\boot.php on line 50

Warning: Private methods cannot be final as they are never overridden by other classes in \wp-content\plugins\disable-embeds-1.3.0\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.