@@ -24,7 +24,7 @@ |
||
24 | 24 | public function __construct() { |
25 | 25 | |
26 | 26 | new AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion( |
27 | - AdminPageFrameworkLoader_Registry::HOOK_SLUG . '_action_get_development_version' // action name |
|
27 | + AdminPageFrameworkLoader_Registry::HOOK_SLUG.'_action_get_development_version' // action name |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function replyToDoAction() { |
41 | 41 | AdminPageFramework_WPUtility::setTransient( |
42 | - AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX . 'devver', |
|
42 | + AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX.'devver', |
|
43 | 43 | $this->_getVersion(), // data - if an error occurs, an empty string will be given |
44 | 44 | 604800 // for one week |
45 | 45 | ); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $_sPageBody = $this->_getPageBody(); |
56 | 56 | $_aHeaders = $_oUtil->getScriptData( |
57 | 57 | $_sPageBody, |
58 | - '', /// context |
|
58 | + '', /// context |
|
59 | 59 | array( 'version' => 'Version' ) |
60 | 60 | ); |
61 | 61 | return $_oUtil->getElement( |
@@ -26,7 +26,7 @@ |
||
26 | 26 | * |
27 | 27 | * @since 3.6.2 |
28 | 28 | */ |
29 | - public function __construct( $sActionName ) { |
|
29 | + public function __construct( $sActionName ) { |
|
30 | 30 | add_action( |
31 | 31 | $sActionName, |
32 | 32 | array( $this, 'replyToDoAction' ) |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @return array |
49 | 49 | */ |
50 | - public function get( $iItems=0 ) { |
|
50 | + public function get( $iItems = 0 ) { |
|
51 | 51 | |
52 | 52 | $_aOutput = array(); |
53 | 53 | $_aURLs = $this->_aURLs; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return $_aOutput; |
57 | 57 | } |
58 | 58 | |
59 | - $_oFeed = fetch_feed( $_aURLs ); |
|
59 | + $_oFeed = fetch_feed( $_aURLs ); |
|
60 | 60 | foreach ( $_oFeed->get_items() as $_oItem ) { |
61 | 61 | $_aOutput[ $_oItem->get_title() ] = array( |
62 | 62 | 'content' => $_oItem->get_content(), |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | 'title' => $_oItem->get_title(), |
65 | 65 | 'date' => $_oItem->get_date( 'j F Y, g:i a' ), |
66 | 66 | 'author' => $_oItem->get_author(), |
67 | - 'link' => $_oItem->get_permalink(), // get_link() may be used as well |
|
67 | + 'link' => $_oItem->get_permalink(), // get_link() may be used as well |
|
68 | 68 | ); |
69 | 69 | } |
70 | 70 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | $_sMaingPluginFileName = 'admin-page-framework-loader.php'; |
32 | 32 | if ( file_exists( dirname( __FILE__ ). '/' . $_sMaingPluginFileName ) ) { |
33 | - include( $_sMaingPluginFileName ); |
|
33 | + include( $_sMaingPluginFileName ); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | if ( class_exists( 'AdminPageFrameworkLoader_Registry' ) ) : |
@@ -9,10 +9,10 @@ discard block |
||
9 | 9 | * @since 3.5.0 |
10 | 10 | */ |
11 | 11 | |
12 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | +if ( !defined( 'ABSPATH' ) ) { |
|
13 | 13 | exit; |
14 | 14 | } |
15 | -if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
15 | +if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
16 | 16 | exit; |
17 | 17 | } |
18 | 18 | |
@@ -21,15 +21,15 @@ discard block |
||
21 | 21 | * We are going to load the main file to get the registry class. And in the main file, |
22 | 22 | * if this constant is set, it will return after declaring the registry class. |
23 | 23 | **/ |
24 | -if ( ! defined( 'DOING_UNINSTALL' ) ) { |
|
25 | - define( 'DOING_UNINSTALL', true ); |
|
24 | +if ( !defined( 'DOING_UNINSTALL' ) ) { |
|
25 | + define( 'DOING_UNINSTALL', true ); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Set the main plugin file name here. |
30 | 30 | */ |
31 | -$_sMaingPluginFileName = 'admin-page-framework-loader.php'; |
|
32 | -if ( file_exists( dirname( __FILE__ ). '/' . $_sMaingPluginFileName ) ) { |
|
31 | +$_sMaingPluginFileName = 'admin-page-framework-loader.php'; |
|
32 | +if ( file_exists( dirname( __FILE__ ).'/'.$_sMaingPluginFileName ) ) { |
|
33 | 33 | include( $_sMaingPluginFileName ); |
34 | 34 | } |
35 | 35 | |
@@ -41,12 +41,12 @@ discard block |
||
41 | 41 | // Delete transients |
42 | 42 | $_aPrefixes = array( |
43 | 43 | AdminPageFrameworkLoader_Registry::TRANSIENT_PREFIX, // the plugin transients |
44 | - 'apf_', // the admin page framework transients |
|
44 | + 'apf_', // the admin page framework transients |
|
45 | 45 | ); |
46 | - foreach( $_aPrefixes as $_sPrefix ) { |
|
47 | - if ( ! $_sPrefix ) { continue; } |
|
48 | - $GLOBALS['wpdb']->query( "DELETE FROM `" . $GLOBALS['table_prefix'] . "options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" ); |
|
49 | - $GLOBALS['wpdb']->query( "DELETE FROM `" . $GLOBALS['table_prefix'] . "options` WHERE `option_name` LIKE ( '_transient_timeout_%{$_sPrefix}%' )" ); |
|
46 | + foreach ( $_aPrefixes as $_sPrefix ) { |
|
47 | + if ( !$_sPrefix ) { continue; } |
|
48 | + $GLOBALS[ 'wpdb' ]->query( "DELETE FROM `".$GLOBALS[ 'table_prefix' ]."options` WHERE `option_name` LIKE ( '_transient_%{$_sPrefix}%' )" ); |
|
49 | + $GLOBALS[ 'wpdb' ]->query( "DELETE FROM `".$GLOBALS[ 'table_prefix' ]."options` WHERE `option_name` LIKE ( '_transient_timeout_%{$_sPrefix}%' )" ); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | endif; |
53 | 53 | \ No newline at end of file |