Skip to content

Commit 3a5fb7a

Browse files
committed
Sniffs in core files
1 parent da65c2a commit 3a5fb7a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
exit;
2424
}
2525

26-
include( dirname( __FILE__ ) . '/src/ableplayer.php' );
26+
require __DIR__ . '/src/ableplayer.php';
2727

2828
register_activation_hook( __FILE__, 'ableplayer_activation' );
2929
register_deactivation_hook( __FILE__, 'ableplayer_plugin_deactivated' );

src/ableplayer.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ function ableplayer_enqueue_scripts() {
8080
// Enqueue Able Player script and CSS.
8181
wp_enqueue_script( 'ableplayer', $js_dir, array( 'jquery' ), ABLEPLAYER_VERSION );
8282
wp_enqueue_style( 'ableplayer', $css_dir, array(), ABLEPLAYER_VERSION );
83-
8483
}
8584
add_action( 'wp_enqueue_scripts', 'ableplayer_enqueue_scripts' );
8685

@@ -466,13 +465,13 @@ function ableplayer_get_unique_id() {
466465
/**
467466
* Test whether a given able player property is true.
468467
*
469-
* @param bool|string|int $var A boolean-like value that should be treated as boolean.
468+
* @param bool|string|int $condition A boolean-like value that should be treated as boolean.
470469
*
471470
* @return bool
472471
*/
473-
function ableplayer_is_true( $var ) {
472+
function ableplayer_is_true( $condition ) {
474473
// check for all variations that might be considered 'true'.
475-
if ( '1' === $var || 'yes' === $var || 'true' === $var || 1 === $var || true === $var ) {
474+
if ( '1' === $condition || 'yes' === $condition || 'true' === $condition || 1 === $condition || true === $condition ) {
476475
return true;
477476
} else {
478477
return false;

0 commit comments

Comments
 (0)