Skip to content

Commit 01139ec

Browse files
committed
Code clean up
1 parent b9ce8ad commit 01139ec

File tree

4 files changed

+5
-59
lines changed

4 files changed

+5
-59
lines changed

README.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Donate link: http://1fix.io/
55
Tags: featured image, metabox
66
Requires at least: 3.5
77
Tested up to: 3.9.1
8-
Stable tag: 0.2.0
8+
Stable tag: 0.3.0
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -46,5 +46,5 @@ Custom the title, content and link / button text in the Featured Image metabox.
4646

4747
== Changelog ==
4848

49-
= 0.2.0 =
49+
= 0.3.0 =
5050
* The first version

admin/class-custom-featured-image-metabox-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private function __construct() {
5858
add_action( 'admin_menu', array( $this, 'add_plugin_admin_menu' ) );
5959

6060
// Add an action link pointing to the options page.
61-
$plugin_basename = plugin_basename( plugin_dir_path( realpath( dirname( __FILE__ ) ) ) . $this->plugin_slug . '.php' );
61+
$plugin_basename = plugin_basename( plugin_dir_path( realpath( dirname( __FILE__ ) ) ) . 'custom-featured-image-metabox.php' );
6262
add_filter( 'plugin_action_links_' . $plugin_basename, array( $this, 'add_action_links' ) );
6363

6464
/*

custom-featured-image-metabox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Plugin Name: Custom Featured Image Metabox
1515
* Plugin URI: http://1fix.io
1616
* Description: Custom the title, content and link / button text in the Featured Image metabox.
17-
* Version: 0.2.0
17+
* Version: 0.3.0
1818
* Author: 1fixdotio
1919
* Author URI: http://1fix.io
2020
* Text Domain: cfim

public/class-custom-featured-image-metabox.php

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Custom_Featured_Image_Metabox {
2828
*
2929
* @var string
3030
*/
31-
const VERSION = '0.2.0';
31+
const VERSION = '0.3.0';
3232

3333
/**
3434
* Unique identifier for your plugin.
@@ -64,15 +64,6 @@ private function __construct() {
6464
// Load plugin text domain
6565
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
6666

67-
// Activate plugin when new blog is added
68-
add_action( 'wpmu_new_blog', array( $this, 'activate_new_site' ) );
69-
70-
/* Define custom functionality.
71-
* Refer To http://codex.wordpress.org/Plugin_API#Hooks.2C_Actions_and_Filters
72-
*/
73-
// add_action( '@TODO', array( $this, 'action_method_name' ) );
74-
// add_filter( '@TODO', array( $this, 'filter_method_name' ) );
75-
7667
}
7768

7869
/**
@@ -178,25 +169,6 @@ public static function deactivate( $network_wide ) {
178169

179170
}
180171

181-
/**
182-
* Fired when a new site is activated with a WPMU environment.
183-
*
184-
* @since 0.1.0
185-
*
186-
* @param int $blog_id ID of the new blog.
187-
*/
188-
public function activate_new_site( $blog_id ) {
189-
190-
if ( 1 !== did_action( 'wpmu_new_blog' ) ) {
191-
return;
192-
}
193-
194-
switch_to_blog( $blog_id );
195-
self::single_activate();
196-
restore_current_blog();
197-
198-
}
199-
200172
/**
201173
* Get all blog ids of blogs in the current network that are:
202174
* - not archived
@@ -253,30 +225,4 @@ public function load_plugin_textdomain() {
253225

254226
}
255227

256-
/**
257-
* NOTE: Actions are points in the execution of a page or process
258-
* lifecycle that WordPress fires.
259-
*
260-
* Actions: http://codex.wordpress.org/Plugin_API#Actions
261-
* Reference: http://codex.wordpress.org/Plugin_API/Action_Reference
262-
*
263-
* @since 0.1.0
264-
*/
265-
public function action_method_name() {
266-
// @TODO: Define your action hook callback here
267-
}
268-
269-
/**
270-
* NOTE: Filters are points of execution in which WordPress modifies data
271-
* before saving it or sending it to the browser.
272-
*
273-
* Filters: http://codex.wordpress.org/Plugin_API#Filters
274-
* Reference: http://codex.wordpress.org/Plugin_API/Filter_Reference
275-
*
276-
* @since 0.1.0
277-
*/
278-
public function filter_method_name() {
279-
// @TODO: Define your filter hook callback here
280-
}
281-
282228
}

0 commit comments

Comments
 (0)