Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
fix: global function names
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Aug 16, 2024
1 parent bfe62ac commit a2e6564
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions publisher-media-kit.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* @return string Minimum version required.
*/
function minimum_php_requirement() {
function pmk_minimum_php_requirement() {
return '7.4';
}

Expand All @@ -38,12 +38,12 @@ function minimum_php_requirement() {
*
* @return bool true if meets minimum requirements, false otherwise.
*/
function site_meets_php_requirements() {
return version_compare( phpversion(), minimum_php_requirement(), '>=' );
function pmk_site_meets_php_requirements() {
return version_compare( phpversion(), pmk_minimum_php_requirement(), '>=' );
}

// Check minimum PHP version.
if ( ! site_meets_php_requirements() ) {
if ( ! pmk_site_meets_php_requirements() ) {
add_action(
'admin_notices',
function() {
Expand All @@ -55,7 +55,7 @@ function() {
sprintf(
/* translators: %s: Minimum required PHP version */
__( 'Publisher Media Kit requires PHP version %s or later. Please upgrade PHP or disable the plugin.', 'publisher-media-kit' ),
esc_html( minimum_php_requirement() )
esc_html( pmk_minimum_php_requirement() )
)
);
?>
Expand Down

0 comments on commit a2e6564

Please sign in to comment.