Skip to content

Commit

Permalink
Bump to WordPress 6.4 (#17)
Browse files Browse the repository at this point in the history
* Add GH Actions and tested up to 6.4.
  • Loading branch information
Hug0-Drelon authored Oct 10, 2023
1 parent 6ab3f40 commit ef64ad1
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 46 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Static Analysis

on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:

jobs:
testing:
name: PHPCS and PHPStan

runs-on: ubuntu-latest

steps:
- name: Check out the source code
uses: actions/checkout@v3

- name: Run PHPCS and PHPStan tests
uses: polylang/actions/static-analysis@main
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
= 1.1 (2023-10-10) =

* Require at least PHP 7.0.
* Move from Travis to GitHub Actions.
* Tested up to WordPress 6.4.

= 1.0 (2022-12-21) =
* Initial release
6 changes: 3 additions & 3 deletions fse-classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* Plugin Name: Site Editor Classic Features
* Plugin URI: https://polylang.pro
* Description: Allows to use classic widgets and menus in Site Editor.
* Version: 1.0
* Version: 1.1
* Requires at least: 5.9
* Requires PHP: 5.6
* Requires PHP: 7.0
* Author: WP SYNTEX
* Author uri: https://polylang.pro
* Text Domain: fse-classic
Expand All @@ -31,7 +31,7 @@

defined( 'ABSPATH' ) || exit;

define( 'FSE_CLASSIC_VERSION', '1.0' );
define( 'FSE_CLASSIC_VERSION', '1.1' );

define( 'FSE_CLASSIC_FILE', __FILE__ );

Expand Down
4 changes: 2 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<arg name="colors"/><!-- Shows results with colors. -->
<arg name="extensions" value="php,js"/><!-- Limits to PHP and js files. -->

<config name="testVersion" value="5.6-"/>
<config name="minimum_supported_wp_version" value="5.9"/>
<config name="testVersion" value="7.0-"/>
<config name="minimum_supported_wp_version" value="7.0"/>

<!-- https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage -->
<file>.</file>
Expand Down
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: manooweb, hugod
Donate link: https://polylang.pro
Tags: block, widget, menu, fse, site editor
Requires at least: 5.9
Tested up to: 6.1
Requires PHP: 5.6
Stable tag: 1.0
Tested up to: 6.4
Requires PHP: 7.0
Stable tag: 1.1
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ public function supportMenusAndWidgets() {
*
* @since 1.0
*
* @return boolean True if the current screen runs the block editor, false otherwise.
* @return bool True if the current screen runs the block editor, false otherwise.
*/
private function isBlockEditor() {
private function isBlockEditor(): bool {
$current_screen = get_current_screen();

if ( ! empty( $current_screen ) ) {
Expand Down

0 comments on commit ef64ad1

Please sign in to comment.