Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
strategy:
matrix:
include:
- php: '8.5'
wordpress: '6.9'
- php: '8.4'
wordpress: '6.8'
- php: '8.3'
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Tags: liveticker, feed, rss
* Requires at least: 5.0
* Tested up to: 6.9
* Requires PHP: 7.2
* Requires PHP: 7.4
* Stable tag: 1.3.2
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -42,7 +42,7 @@ Alternatively you can also use _Copmposer_.

### Requirements ###

* PHP 7.2 or above
* PHP 7.4 or above
* WordPress 5.0 or above

## Frequently asked questions
Expand All @@ -51,7 +51,7 @@ Alternatively you can also use _Copmposer_.

On WordPress 5 sites there is a Gutenberg Block available to embed a liveticker in your post.

You can also use the shortcode `[liveticker ticker="my-ticker"]` on WordPress 4 or classic-mode sites.
You can also use the shortcode `[liveticker ticker="my-ticker"]` on WordPress 4 or classic-mode sites.
If you want to define a custom tick limit, you might also add a limit with `[liveticker ticker="my-ticker" limit="10"]`.

### Can I use my own styles?
Expand All @@ -61,10 +61,10 @@ You can deactivate the default stylesheet on the settings page and include your

### Does the liveticker work with caching?

If you activate AJAX updates (enabled by default), the JavaScript will automatically update the content, even when the
If you activate AJAX updates (enabled by default), the JavaScript will automatically update the content, even when the
page is loaded from cached.

If AJAX is disabled, it depends on your update and caching intervals. If you update your ticker every 5 minutes, a
If AJAX is disabled, it depends on your update and caching intervals. If you update your ticker every 5 minutes, a
caching time of 12 hours obviously makes no sense.


Expand Down Expand Up @@ -127,7 +127,7 @@ caching time of 12 hours obviously makes no sense.
### 1.1.0 - 2020-05-02

* Requires PHP 5.6 or above
* Use GMT for automatic updates
* Use GMT for automatic updates
* Gutenberg Block available
* Ticks exposed through REST API
* Changed AJAX update logic for embedded media compatibility
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"type": "wordpress-plugin",
"require": {
"php": ">=7.2"
"php": ">=7.4"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^v1.2",
Expand Down
6 changes: 3 additions & 3 deletions includes/class-scliveticker.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ class SCLiveticker {
*
* @var array $options
*/
protected static $options;
protected static array $options;

/**
* Marker if shortcode is present.
*
* @var boolean $shortcode_present
*/
protected static $shortcode_present = false;
protected static bool $shortcode_present = false;


/**
* Marker if widget is present.
*
* @var boolean $widget_present
*/
protected static $widget_present = false;
protected static bool $widget_present = false;

/**
* Plugin initialization.
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
</rule>

<!-- PHP compatibility level -->
<config name="testVersion" value="7.2-"/>
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP"/>
</ruleset>
Loading