Skip to content

Commit

Permalink
bump 23.08.01
Browse files Browse the repository at this point in the history
- Fixed: LimitBulkedit::bulk_editing_is_limited() -> Deprecated Constant FILTER_SANITIZE_STRING.
- Fixed: restrict_api error notice.
- Fixed: Outdated php warning is triggered when Disable Serve Happy Checking is enabled.
- Updated: Tested up to 6.3.
  • Loading branch information
nawawi committed Aug 19, 2023
1 parent 471b139 commit a3676a4
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 37 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ A heartful thanks and appreciation.
<a href="https://www.securepay.my/?utm_source=docketcache&utm_campaign=sponsor-uri&utm_medium=noteworthy"><img src="https://docketcache.com/wp-content/uploads/2021/03/securepay0.jpg" width="250" height="125" style="margin:10px;"></a>
<a href="https://dnsvault.net/?utm_source=docketcache&utm_campaign=sponsor-uri&utm_medium=noteworthy"><img src="https://docketcache.com/wp-content/uploads/2021/03/dnsvault.jpg" width="250" height="125" style="margin:10px;"></a>
<a href="https://exnano.io/?utm_source=docketcache&utm_campaign=sponsor-uri&utm_medium=noteworthy"><img src="https://docketcache.com/wp-content/uploads/2021/03/exnano2-1.jpg" width="250" height="125" style="margin:10px;"></a>
<a href="https://cunhost.com/?utm_source=docketcache&utm_campaign=sponsor-uri&utm_medium=noteworthy"><img src="https://docketcache.com/wp-content/uploads/2021/03/cunhosting0.jpg" width="250" height="125" style="margin:10px;"></a>

Other sponsors are mentioned in the [honourable list](https://github.com/nawawi/docket-cache/issues/5).

Expand Down
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
= v23.08.01 (2023-08-19) =

- Fixed: LimitBulkedit::bulk_editing_is_limited() -> Deprecated Constant FILTER_SANITIZE_STRING.
- Fixed: restrict_api error notice.
- Fixed: Outdated php warning is triggered when Disable Serve Happy Checking is enabled.
- Updated: Tested up to 6.3.

= v22.07.05 (2023-03-18) =

- Fixed: Plugin::register_plugin_hooks() -> Undefined property: stdClass::$slug.
Expand Down
Binary file modified dist/docket-cache.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions docket-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
* @wordpress-plugin
* Plugin Name: Docket Cache
* Plugin URI: https://docketcache.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
* Version: 22.07.05
* VerPrev: 22.07.04
* Version: 23.08.01
* VerPrev: 22.07.05
* Description: A persistent object cache stored as a plain PHP code, accelerates caching with OPcache backend.
* GitHub Plugin URI: https://github.com/nawawi/docket-cache
* Author: Nawawi Jamili
Expand Down
2 changes: 1 addition & 1 deletion includes/object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @wordpress-plugin
* Plugin Name: Docket Cache Drop-in
* Plugin URI: https://wordpress.org/plugins/docket-cache/
* Version: 22.07.05
* Version: 23.08.01
* Description: Object Cache drop-in for Docket Cache.
* Author: Nawawi Jamili
* Author URI: https://docketcache.com
Expand Down
2 changes: 1 addition & 1 deletion includes/src/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

final class Crawler
{
private static $version = '22.07.05';
private static $version = '23.08.01';
public static $send_cookie = false;

private static function default_args($param = [])
Expand Down
6 changes: 4 additions & 2 deletions includes/src/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function is_wp_options($group)
*/
public function is_wp_cache_group_queries($group)
{
return \in_array($group, ['term-queries', 'post-queries', 'comment-queries', 'site-queries', 'network-queries']);
return \in_array($group, ['term-queries', 'post-queries', 'comment-queries', 'site-queries', 'network-queries', 'user-queries']);
}

/**
Expand Down Expand Up @@ -759,7 +759,9 @@ public function is_opcache_filecache_only()
public function opcache_filecache_only()
{
if ($this->is_opcache_filecache_only() && \function_exists('opcache_get_status')) {
$data = @opcache_get_status();
$nwdcx_suppresserrors = nwdcx_suppresserrors(true);
$data = opcache_get_status();
nwdcx_suppresserrors($nwdcx_suppresserrors);
if (!empty($data) && \is_array($data) && !empty($data['file_cache_only']) && !empty($data['file_cache']) && is_dir($data['file_cache'])) {
return $data;
}
Expand Down
2 changes: 1 addition & 1 deletion includes/src/LimitBulkedit.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private function bulk_editing_is_limited()

// Get default per page.
if (!empty($_GET['post_type'])) {
$post_type = filter_var($_GET['post_type'], \FILTER_SANITIZE_STRING);
$post_type = sanitize_key($_GET['post_type']);
// See wp-admin/includes/post.php -> wp_edit_posts_query().
$option = 'edit_'.$post_type.'_per_page';
$per_page = (int) get_user_option($option);
Expand Down
5 changes: 4 additions & 1 deletion includes/src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,10 @@ public function get_opcache_status($is_raw = false)
if (!$this->opcache_function_exists('opcache_get_status')) {
$status = 2;
} else {
$data = @opcache_get_status();
$nwdcx_suppresserrors = nwdcx_suppresserrors(true);
$data = opcache_get_status();
nwdcx_suppresserrors($nwdcx_suppresserrors);

if (!empty($data) && \is_array($data)) {
if (!empty($data['opcache_enabled'])) {
if ($is_raw) {
Expand Down
4 changes: 4 additions & 0 deletions includes/src/Tweaks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,10 @@ public function wpservehappy()
'is_acceptable' => '',
];
}, \PHP_INT_MAX);

add_action('wp_dashboard_setup', function () {
remove_meta_box('dashboard_php_nag', 'dashboard', 'normal');
});
}

// wp < 5.8
Expand Down
4 changes: 2 additions & 2 deletions includes/vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'nawawi/docket-cache',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '449b87045f34fe11daf67cecd7b1559c0e2b3791',
'reference' => '471b1390e66efb09ca23f048494f355a8dbf17a4',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'nawawi/docket-cache' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '449b87045f34fe11daf67cecd7b1559c0e2b3791',
'reference' => '471b1390e66efb09ca23f048494f355a8dbf17a4',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../../',
'aliases' => array(),
Expand Down
46 changes: 23 additions & 23 deletions languages/docket-cache.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the MIT.
msgid ""
msgstr ""
"Project-Id-Version: Docket Cache 22.07.05\n"
"Project-Id-Version: Docket Cache 23.08.01\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docket-cache\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-03-18T15:59:30+00:00\n"
"POT-Creation-Date: 2023-08-19T13:14:48+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.7.1\n"
"X-Domain: docket-cache\n"
Expand Down Expand Up @@ -99,7 +99,7 @@ msgid "Run Garbage Collector"
msgstr ""

#: includes/admin/config.php:18
#: includes/src/Plugin.php:1578
#: includes/src/Plugin.php:1581
#: includes/src/View.php:316
msgid "Configuration"
msgstr ""
Expand Down Expand Up @@ -244,15 +244,15 @@ msgstr ""

#: includes/admin/cronbot.php:20
#: includes/src/Plugin.php:176
#: includes/src/Plugin.php:1788
#: includes/src/Plugin.php:1789
#: includes/src/Plugin.php:1796
#: includes/src/Plugin.php:1798
#: includes/src/Plugin.php:1791
#: includes/src/Plugin.php:1792
#: includes/src/Plugin.php:1799
#: includes/src/Plugin.php:1801
msgid "Not Available"
msgstr ""

#: includes/admin/cronbot.php:32
#: includes/src/Plugin.php:1541
#: includes/src/Plugin.php:1544
#: includes/src/View.php:303
msgid "Cronbot"
msgstr ""
Expand Down Expand Up @@ -315,7 +315,7 @@ msgstr ""

#: includes/admin/log.php:21
#: includes/src/Canopt.php:82
#: includes/src/Plugin.php:1567
#: includes/src/Plugin.php:1570
#: includes/src/View.php:313
msgid "Cache Log"
msgstr ""
Expand Down Expand Up @@ -574,8 +574,8 @@ msgid "Web Proxy"
msgstr ""

#: includes/admin/overview.php:35
#: includes/src/Plugin.php:1530
#: includes/src/Plugin.php:1858
#: includes/src/Plugin.php:1533
#: includes/src/Plugin.php:1861
#: includes/src/View.php:300
msgid "Overview"
msgstr ""
Expand Down Expand Up @@ -1590,49 +1590,49 @@ msgid_plural "of %s Networks"
msgstr[0] ""
msgstr[1] ""

#: includes/src/Plugin.php:905
#: includes/src/Plugin.php:908
msgid "Docket Cache plugin requires PHP 7.2.5 or greater."
msgstr ""

#: includes/src/Plugin.php:1212
#: includes/src/Plugin.php:1238
#: includes/src/Plugin.php:1215
#: includes/src/Plugin.php:1241
msgid "The log is empty. No data is available."
msgstr ""

#: includes/src/Plugin.php:1553
#: includes/src/Plugin.php:1556
#: includes/src/View.php:307
msgid "OPcache"
msgstr ""

#. translators: %s: url
#: includes/src/Plugin.php:1663
#: includes/src/Plugin.php:1666
msgid "The object-cache.php Drop-In is outdated. Please click <strong>Re-Install</strong> to update it now. <br><br><a href=\"%s\" style=\"min-width:100px;text-align:center;font-wight:bold;\" class=\"button button-primary\">Re-Install</a>"
msgstr ""

#. translators: %1$s: url install, %2$s = url dismiss
#: includes/src/Plugin.php:1667
#: includes/src/Plugin.php:1670
msgid "An unknown object-cache.php Drop-In was found. Please click <strong>Install</strong> to use <strong>Docket Cache</strong>. <br><br><a href=\"%1$s\" style=\"min-width:100px;text-align:center;font-weight:bold;\" class=\"button button-primary button-small\">Install</a>&nbsp;<a href=\"%2$s\" style=\"min-width:100px;text-align:center;font-weight:bold;\" class=\"button button-secondary button-small\">Dismiss</a>"
msgstr ""

#: includes/src/Plugin.php:1672
#: includes/src/Plugin.php:1675
msgid "The Object Cache feature has been disabled at runtime."
msgstr ""

#. translators: %s: version
#: includes/src/Plugin.php:1829
#: includes/src/Plugin.php:1844
#: includes/src/Plugin.php:1832
#: includes/src/Plugin.php:1847
msgid "Version %s"
msgstr ""

#: includes/src/Plugin.php:1859
#: includes/src/Plugin.php:1862
msgid "Configure"
msgstr ""

#: includes/src/Plugin.php:1871
#: includes/src/Plugin.php:1874
msgid "Docs"
msgstr ""

#: includes/src/Plugin.php:1872
#: includes/src/Plugin.php:1875
msgid "Sponsor"
msgstr ""

Expand Down
11 changes: 8 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: nawawijamili
Tags: object cache, OPcache, cache, database, performance, Optimisation, redis, memcached, speed
Requires at least: 5.4
Tested up to: 6.2
Tested up to: 6.3
Requires PHP: 7.2.5
Stable tag: 22.07.05
Stable tag: 23.08.01
License: MIT
License URI: https://github.com/nawawi/docket-cache/blob/master/LICENSE.txt

Expand Down Expand Up @@ -77,7 +77,6 @@ A heartful thanks and appreciation.
- [SecurePay](https://www.securepay.my/?utm_source=docketcache&utm_campaign=plugin-uri&utm_medium=wporg)
- [DNSVault](https://dnsvault.net/?utm_source=docketcache&utm_campaign=plugin-uri&utm_medium=wporg)
- [Exnano Creative](https://exnano.io/?utm_source=docketcache&utm_campaign=plugin-uri&utm_medium=wporg)
- [Cun Host](https://cunhost.com/?utm_source=docketcache&utm_campaign=plugin-uri&utm_medium=wporg)


Other sponsors are mentioned in the [honourable list](https://github.com/nawawi/docket-cache/issues/5)
Expand Down Expand Up @@ -173,6 +172,12 @@ Yes, you can. It can boost more your WordPress performance since there is no net
Please do manually remove wp-content/object-cache.php and wp-content/cache/docket-cache if an error occurs during updates. Thanks.

== Changelog ==
= v23.08.01 =
- Fixed: LimitBulkedit::bulk_editing_is_limited() -> Deprecated Constant FILTER_SANITIZE_STRING.
- Fixed: restrict_api error notice.
- Fixed: Outdated php warning is triggered when Disable Serve Happy Checking is enabled.
- Updated: Tested up to 6.3.

= 22.07.05 =
- Fixed: Plugin::register_plugin_hooks() -> Undefined property: stdClass::$slug.
- Fixed: Event::garbage_collector() -> Stale cache, invalid filter for comment_feed.
Expand Down

0 comments on commit a3676a4

Please sign in to comment.