GithubHelp home page GithubHelp logo

isabella232 / wp-plugin-dependencies-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wordpress/wp-plugin-dependencies

0.0 0.0 0.0 527 KB

WordPress Feature Project: Plugin Dependencies

Home Page: https://make.wordpress.org/core/2022/02/24/feature-project-plugin-dependencies/

License: MIT License

Shell 17.02% PHP 82.98%

wp-plugin-dependencies-1's Introduction

WordPress Feature Project: Plugin Dependencies

  • Contributors: afragen, costdev
  • Description: Parses 'Requires Plugins' header, add plugin install dependencies tab, and information about dependencies.
  • License: MIT
  • Network: true
  • Requires at least: 5.2
  • Requires PHP: 5.6
  • Stable tag: trunk

Description

Parses a 'Requires Plugins' header and adds a Dependencies tab in the plugin install page. If a requiring plugin does not have all it's dependencies installed and active, it will not activate.

My solution to #22316. Feature plugin version of PR #1724

  • Parses the Requires Plugins header that defines plugin dependencies using a comma separated list of wp.org slugs.

  • Displays a single admin notice with link to Plugins > Add New > Dependencies if not all plugin dependencies have been installed.

  • Adds a new view/tab to plugins install page ( Plugins > Add New ) titled Dependencies that contains plugin cards for all plugin dependencies.

  • This view also lists which plugins require which plugin dependencies in the plugin card, though that feature requires the filter below to function. ๐Ÿ˜…

  • In the plugins page, a dependent plugin is unable to be deleted or deactivated if the requiring plugin is active.

  • Plugin dependencies can be deactivated or deleted if the requiring plugin is not active.

  • Messaging in the plugin row description is inserted; as is data noting which plugins require the dependency.

  • If the dependency API data is not available a generic plugin card will be displayed in the Dependencies tab.

  • Ensures that plugins with unmet dependencies cannot be activated.

FAQ

Make post for Plugin Dependencies Feature Project

Phase 1 - Architecture & Design Discussion

Discussion of architecture and design elements and features. This will be done via issues.

Please review them, comment on them, and create new issues.

Phase 2 - Actual code review

If you are more comfortable looking at actual code, below are the 2 PRs currently available for #22316. Please comment on the trac ticket.

Implement WP admin UI for plugin dependencies PR #1547

Plugin Dependencies Tab PR #1724

Currently the above PRs have been closed.

wp-plugin-dependencies-1's People

Contributors

afragen avatar peterwilsoncc avatar

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.