Skip to content

Instantly share code, notes, and snippets.

@jeherve
Created March 4, 2014 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeherve/9354187 to your computer and use it in GitHub Desktop.
Save jeherve/9354187 to your computer and use it in GitHub Desktop.
[Jetpack] Check of Tonesque's file is readable https://cloudup.com/cKET0dvWlaX
<?php
/*
* Plugin Name: Check Jetpack's Tonesque
* Plugin URI: http://wordpress.org/extend/plugins/jetpack/
* Description: Check if the Tonesque file is readable
* Author: Jeremy Herve
* Version: 1.0
* Author URI: http://jeremyherve.com
* License: GPL2+
*/
function jeherve_check_tonesque_readable() {
$tonesque = plugin_dir_path( __FILE__ ) . '../jetpack/_inc/lib/tonesque.php';
if ( is_readable( $tonesque ) ) {
echo 'The file is readable';
} else {
echo 'The file is not readable';
}
}
add_action( 'wp_footer', 'jeherve_check_tonesque_readable' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment