Skip to content

Provide notice for min. WordPress version#2156

Merged
jarednova merged 7 commits into2.xfrom
2151/wp_version
Jan 9, 2020
Merged

Provide notice for min. WordPress version#2156
jarednova merged 7 commits into2.xfrom
2151/wp_version

Conversation

@jarednova
Copy link
Copy Markdown
Member

Ticket: #2151

Issue

As discussed in #2135, we're dropping support for WordPress versions prior to 5.3 in 2.x. To do this, we need to let people know.

Solution

Let 'em know! Through the upgrade guide, ensuring the require-dev in composer is correct (we can't do comments/annotations in here, but this is one way to indicate) and an admin notice in case someone is running a WP version that's older than 5.3.

Once inside of the Admin class I realized we could get rid of the bulk of what's here since it modifies the plug-in entry for Timber (which we're also not supporting in 2.x, in favor of Composer/Packagist only)

Impact

This helps let devs know to upgrade their WordPress.

Considerations

We could copy over some of this code into 1.x (perhaps upon the last release to WP.org) to let people know that there won't be any further plugin support and to upgrade to both WP 5.3+ and Timber 2.x+ for new sites

@jarednova jarednova requested a review from gchtr January 8, 2020 03:33
@jarednova jarednova added the 2.0 label Jan 8, 2020
@jarednova jarednova changed the title 2151/wp version Provide notice for min. WordPress version Jan 8, 2020
@jarednova jarednova requested a review from acobster January 8, 2020 21:17
acobster
acobster previously approved these changes Jan 8, 2020
Copy link
Copy Markdown
Collaborator

@acobster acobster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

gchtr
gchtr previously approved these changes Jan 8, 2020
@jarednova jarednova dismissed stale reviews from gchtr and acobster via fd2486a January 9, 2020 03:23
@jarednova jarednova self-assigned this Jan 9, 2020
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 9, 2020

Codecov Report

❗ No coverage uploaded for pull request base (2.x@0846f61). Click here to learn what that means.
The diff coverage is 93.61%.

Impacted file tree graph

@@          Coverage Diff          @@
##             2.x   #2156   +/-   ##
=====================================
  Coverage       ?   95.6%           
  Complexity     ?    1531           
=====================================
  Files          ?      50           
  Lines          ?    3933           
  Branches       ?       0           
=====================================
  Hits           ?    3760           
  Misses         ?     173           
  Partials       ?       0
Impacted Files Coverage Δ Complexity Δ
lib/Timber.php 85.96% <ø> (ø) 32 <0> (?)
lib/Admin.php 44.44% <ø> (ø) 3 <0> (?)
lib/Twig.php 98.91% <100%> (ø) 53 <11> (?)
lib/DateTimeHelper.php 87.5% <87.5%> (ø) 15 <15> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0846f61...fd2486a. Read the comment docs.

@jarednova jarednova merged commit 13cb15f into 2.x Jan 9, 2020
@jarednova jarednova deleted the 2151/wp_version branch January 9, 2020 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants