Skip to content

Commit

Permalink
v0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
xxsimoxx committed Mar 9, 2020
1 parent 9504c39 commit a44a157
Show file tree
Hide file tree
Showing 8 changed files with 354 additions and 189 deletions.
10 changes: 5 additions & 5 deletions cpcompatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/**
* Plugin Name: CPcompatibility
* Plugin URI: https://software.gieffeedizioni.it
* Description: Tweaks for working with CP: wpcli compatibility, plugin checks.
* Version: 0.1.5
* Description: Tweaks for working with CP: wpcli compatibility, plugin checks.
* Version: 0.1.6
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Author: Gieffe edizioni srl
Expand Down Expand Up @@ -51,7 +51,7 @@

/**
*
* Add a page in "tools" menu for displaying popular plugins and their
* Add a page in "tools" menu for displaying popular plugins and their
* compatibility with ClassicPress (WP 4.9.10)
*
*/
Expand All @@ -60,15 +60,15 @@
// Load text domain
add_action( 'plugins_loaded', 'cpc_load_textdomain' );
function cpc_load_textdomain() {
load_plugin_textdomain( 'cpc', false, basename( dirname( __FILE__ ) ) . '/languages' );
load_plugin_textdomain( 'cpc', false, basename( dirname( __FILE__ ) ) . '/languages' );
}

/*
*
* Add a statistics link in plugins page
*
*/

add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'cpcompatibility_pal');
function cpcompatibility_pal( $links ) {
if (!function_exists('classicpress_version') || version_compare('1.1.0', classicpress_version(), '>')) {
Expand Down
Loading

0 comments on commit a44a157

Please sign in to comment.