evermade / wordpress-version-dashboard-client Goto Github PK
View Code? Open in Web Editor NEWCentralized version dashboard for multiple WordPress installations.
Home Page: https://www.evermade.fi
Centralized version dashboard for multiple WordPress installations.
Home Page: https://www.evermade.fi
Logically it would seem that we are trying to check if the count of available updates is higher than zero, but that's not what actually happens. Looking at line 90 of https://github.com/evermade/wordpress-version-dashboard-client/blob/master/version-dashboard-client.php#L90 , it seems like the issue is as follows:
We set core_needs_update with this:
core_needs_update' => isset($coreInformation->updates) && count($coreInformation->updates) > 0
However, count($coreInformation->updates)
returns 1
because if there are no updates, the transient returns false
, and count(false)
returns 1
. The return value of get_site_transient()
is further documented at https://developer.wordpress.org/reference/functions/get_site_transient/.
So, in the end we end up comparing if 1 > 0
, and thus we get the value true
here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.