Skip to content

Commit

Permalink
Adds support for PHP 8. Closes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
hofmannsven committed Jul 23, 2022
1 parent 3e7e285 commit 9ce8e8c
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 34 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Notable changes and release notes of the Mark Posts WordPress plugin.

## 2.1.0
* Adds support for PHP 8

## 2.0.1
* Fixes a possible XSS vulnerability.
Thanks @fuzzyap1 for discovering and responsibly disclosing this vulnerability.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Check our [roadmap](https://github.com/hofmannsven/mark-posts/projects/1) for pl
Using the latest version of WordPress and PHP is highly recommended.

* WordPress 3.7 or newer
* PHP 7.0 or newer (also tested with PHP 7.4)
* PHP 7.0 or newer (also tested with PHP 8.0)

### Using WP-CLI
1. Install and activate: `wp plugin install mark-posts --activate`
Expand Down
9 changes: 6 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: flymke, hofmannsven
Tags: mark posts, highlight, highlight posts, status, post status, overview, post overview, featured, custom posts, featured posts, post, posts
Requires at least: 3.7
Tested up to: 5.9
Tested up to: 6.0
Requires PHP: 7.0
Stable tag: 2.0.1
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.txt

Expand All @@ -29,7 +29,7 @@ Mark Posts plugin provides an easy way to mark and highlight posts, pages and po
Using the latest version of WordPress and PHP is highly recommended.

* WordPress 3.7 or newer
* PHP 7.0 or newer (also tested with PHP 7.4)
* PHP 7.0 or newer (also tested with PHP 8.0)

= Using WP-CLI =
1. Install and activate: `wp plugin install mark-posts --activate`
Expand Down Expand Up @@ -93,6 +93,9 @@ Visit [Mark Posts on Github](https://github.com/hofmannsven/mark-posts).

== Changelog ==

= 2.1.0 =
* Adds support for PHP 8

= 2.0.1 =
* Fixes a possible XSS vulnerability.
Thanks @fuzzyap1 for discovering and responsibly disclosing this vulnerability.
Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@
"source": "https://github.com/hofmannsven/mark-posts"
},
"require": {
"php": "^7.0"
"php": "^7.0|^8.0"
},
"require-dev": {
"roots/wordpress": "^5.8"
"roots/wordpress": "^6.0"
},
"config": {
"allow-plugins": {
"roots/wordpress-core-installer": true
}
}
}
112 changes: 87 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion languages/mark-posts.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is distributed under the same license as the Mark Posts plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mark Posts 2.0.1\n"
"Project-Id-Version: Mark Posts 2.1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mark-posts\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
4 changes: 2 additions & 2 deletions mark-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Mark Posts
* Description: Mark and highlight posts, pages and posts of custom post types within the posts overview.
* Plugin URI: https://wordpress.org/plugins/mark-posts
* Version: 2.0.1
* Version: 2.1.0
* Author: Michael Schoenrock, Sven Hofmann
* Author URI: https://www.halloecho.de
* Contributor: Sven Hofmann
Expand All @@ -28,7 +28,7 @@
*
*/
if (!defined('WP_MARK_POSTS_VERSION')) {
define('WP_MARK_POSTS_VERSION', '2.0.1');
define('WP_MARK_POSTS_VERSION', '2.1.0');
}

/*
Expand Down

0 comments on commit 9ce8e8c

Please sign in to comment.