Skip to content

Commit be91ea8

Browse files
committed
Bug fix
1 parent deda0ce commit be91ea8

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# WP Plugin Framework
22
[![Build Status](https://travis-ci.org/nirjharlo/wp-plugin-framework.svg?branch=master)](https://travis-ci.org/nirjharlo/wp-plugin-framework)
3+
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/nirjharlo/wp-plugin-framework/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/nirjharlo/wp-plugin-framework/)
34

45
A WordPress plugin framework is a simple and light-weight base to build any standard WP plugin on top of it. Easily achieve high productivity.
56
It contains various items, such as Settings pages, Data tables, Widgets, Metaboxes, Custom Post Types, Shortcodes along with infrastructure for DB operations.

autoload.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function installation() {
2525
'label' => ''
2626
),
2727
);
28-
$install->do();
28+
$install->execute();
2929
}
3030
3131
$this->corn();
@@ -165,8 +165,8 @@ public function shortcode() {
165165

166166

167167

168-
//Add customization files
169-
public function customization() {
168+
//Add functionality files
169+
public function functionality() {
170170

171171
require_once ('src/install.php');
172172
require_once ('src/db.php');
@@ -200,7 +200,7 @@ public function helpers() {
200200
public function __construct() {
201201

202202
$this->helpers();
203-
$this->customization();
203+
$this->functionality();
204204

205205
register_activation_hook( PLUGIN_FILE, array( $this, 'db_install' ) );
206206

src/install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class PLUGIN_INSTALL {
2424

2525

2626

27-
public function do() {
27+
public function execute() {
2828
add_action( 'plugins_loaded', array( $this, 'text_domain_cb' ) );
2929
add_action( 'admin_notices', array( $this, 'php_ver_incompatible' ) );
3030
add_filter( 'plugin_action_links', array( $this, 'menu_page_link' ), 10, 2 );

0 commit comments

Comments
 (0)