Skip to content

Commit 836585c

Browse files
committed
Bugs fixed
1 parent c28712b commit 836585c

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

autoload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function db_install() {
7272
* Optionally check if the DB table is installed correctly
7373
*
7474
if (get_option('_plugin_db_exist') == '0') {
75-
add_action( 'admin_notices', 'db_error_msg' );
75+
add_action( 'admin_notices', array( $this, 'db_error_msg' ) );
7676
}
7777
*
7878
*/
@@ -110,7 +110,7 @@ public function db_uninstall() {
110110
*
111111
* Important table name declarition
112112
*
113-
$tableName = 'plugin_db_table';
113+
$tableName = 'plugin_db_table_name';
114114
115115
global $wpdb;
116116
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}$tableName" );
@@ -129,7 +129,7 @@ public function db_uninstall() {
129129
//Include scripts
130130
public function scripts() {
131131

132-
if ( class_exists( 'CGSS_SCRIPT' ) ) new CGSS_SCRIPT();
132+
if ( class_exists( 'PLUGIN_SCRIPT' ) ) new PLUGIN_SCRIPT();
133133
}
134134

135135

lib/ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class PLUGIN_AJAX {
1515
public function __construct() {
1616

1717
//Adding the AJAX
18-
add_action( 'admin_footer', array( $this, 'customName_js' ) );
18+
add_action( 'wp_footer', array( $this, 'customName_js' ) );
1919
add_action( 'wp_ajax_customName', array( $this, 'customName' ) );
2020
add_action( 'wp_ajax_nopriv_customName', array( $this, 'customName' ) );
2121
}

lib/upload.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
if ( ! class_exists( 'PLUGIN_UPLOAD' ) ) {
1010

11-
final class PLUGIN_UPLOAD extends WP_WIDGET {
11+
final class PLUGIN_UPLOAD {
1212

1313

1414

@@ -19,7 +19,7 @@ public function __construct() {
1919
$this->upload_controller();
2020
}
2121

22-
$this->form_upload();
22+
$this->upload_form();
2323
}
2424

2525

@@ -74,7 +74,7 @@ public function upload_controller() {
7474
// Notify wrong file type
7575
public function file_type_error_admin_notice() { ?>
7676

77-
<div class="notice notice-success is-dismissible">
77+
<div class="notice notice-error is-dismissible">
7878
<p><?php _e( 'Please Upload correct type of file only.', 'textdomain' ); ?></p>
7979
</div>
8080
<?php
@@ -84,7 +84,7 @@ public function file_type_error_admin_notice() { ?>
8484
// Notify error in upload process
8585
public function file_error_admin_notice() { ?>
8686

87-
<div class="notice notice-success is-dismissible">
87+
<div class="notice notice-error is-dismissible">
8888
<p><?php _e( 'File Upload failed.', 'textdomain' ); ?></p>
8989
</div>
9090
<?php

src/install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/**
55
* Implimentation of WordPress inbuilt functions for plugin activation.
66
*/
7-
if ( ! class_exists( 'PLUGGIN_INSTALL' ) ) {
7+
if ( ! class_exists( 'PLUGIN_INSTALL' ) ) {
88

99
final class PLUGIN_INSTALL {
1010

@@ -45,7 +45,7 @@ public function php_ver_incompatible() {
4545

4646
if ( version_compare( phpversion(), $this->phpVerAllowed, '<' ) ) :
4747
$text = __( 'The Plugin can\'t be activated because your PHP version', 'textdomain' );
48-
$text_last = __( 'is less than required 5.3. See more information', 'textdomain' );
48+
$text_last = __( 'is less than required '.$this->phpVerAllowed.'. See more information', 'textdomain' );
4949
$text_link = 'php.net/eol.php'; ?>
5050

5151
<div id="message" class="updated notice notice-success is-dismissible"><p><?php echo $text . ' ' . phpversion() . ' ' . $text_last . ': '; ?><a href="http://php.net/eol.php/" target="_blank"><?php echo $text_link; ?></a></p></div>

wp-plugin-framework.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
Description: Simple and Light WordPress plugin development framework for organized Object Oriented code for Developers.
66
Version: 1.1
77
Author: Nirjhar Lo
8-
Author URI: http://stackoverflow.com/story/nirjhar-lo-206774
8+
Author URI: http://nirjharlo.com
99
Text Domain: textdomain
10-
Domain Path: /assets/ln
10+
Domain Path: /asset/ln
1111
License: GPLv2
1212
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1313
*/

0 commit comments

Comments
 (0)