Skip to content

Commit

Permalink
Reconcile oik-depends #26
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Aug 7, 2023
1 parent 5d84926 commit c9d9c5d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libs/oik-depends.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php // (C) Copyright Bobbing Wide 2012-2022
<?php // (C) Copyright Bobbing Wide 2012-2023
if ( !defined( "OIK_DEPENDS_INCLUDED" ) ) {
define( "OIK_DEPENDS_INCLUDED", "3.2.6" );
define( "OIK_DEPENDS_INCLUDED", "3.2.7" );

/**
* Dependency checking library functions
Expand Down Expand Up @@ -104,6 +104,7 @@ function oik_plugin_inactive( $plugin=null, $dependencies=null, $problem=null )
$text .= sprintf( __( 'Plugin %1$s may not be fully functional.', null ), $plug_name );
$text .= '</b>';
$text .= ' ';
/* translators: %s: plugin dependencies, comma separated */
$text .= sprintf( __( 'Please install and activate the required minimum version of this plugin: %1$s', null ), $dependencies );
$text .= "</p>";
if ( current_filter() == "admin_notices" ) {
Expand Down Expand Up @@ -148,8 +149,10 @@ function oik_plugin_plugin_inactive( $plugin=null, $dependencies=null, $problem=
$dependencies = str_replace( ":", ' ' . __( "version", null ) . ' ', $dependencies );
list( $depends ) = explode(' ', trim( $dependencies ));
$text = "<p><b>";
/* translators: %s: plugin dependencies, comma separated */
$text .= sprintf( __( '%1$s may not be fully functional.', null), $plugin_name );
$text .= "</b> ";
/* translators: %s: plugin dependencies, comma separated */
$text .= sprintf( __( 'Please install and activate the required minimum version of this plugin: %1$s', null ), $dependencies );
$text .= "</p>";

Expand Down Expand Up @@ -282,6 +285,7 @@ function oik_install_plugin( $plugin ) {
$link = '<a href="';
$link .= $url;
$link .= '">';
/* translators: %s: plugin name */
$link .= sprintf( __( 'Install %1$s', null ), $plugin );
$link .= "</a>";
return( $link );
Expand Down Expand Up @@ -310,6 +314,7 @@ function oik_activate_plugin( $plugin, $plugin_name) {
$link = '<a href="';
$link .= $url;
$link .= '">';
/* translators: %s: plugin name */
$link .= sprintf( __( 'Activate %1$s', null ), $plugin_name );
$link .= "</a>";
return( $link );
Expand All @@ -328,6 +333,7 @@ function oik_update_plugin( $plugin ) {
$link = '<a href="';
$link .= $url;
$link .= '">';
/* translators: %s: plugin name */
$link .= sprintf( __( 'Upgrade %1$s', null ), $plugin );
$link .= "</a>";
return( $link );
Expand Down

0 comments on commit c9d9c5d

Please sign in to comment.