Skip to content

Commit d37653d

Browse files
Merge pull request #10 from chuckreynolds/develop
tested up to 4.9. min version to 4.0. rem deprecated stuff
2 parents a8478f3 + d246853 commit d37653d

File tree

2 files changed

+41
-46
lines changed

2 files changed

+41
-46
lines changed

readme.txt

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
=== Selfish Fresh Start ===
22
Contributors: ryno267
3-
Donate link: http://rynoweb.com/wordpress-plugins/
4-
Tags: clean, fresh start, new install, clean admin, curly quotes, remove meta box, remove widgets, editor, profile fields, no smilies, no trackbacks, no pings, self pings, organize, declutter, clutter, theme editor, rsd links, wlw manifest links, shortlink, dashboard widgets, quick press, dashboard news, remove edit menu, remove editor, remove plugin editor, remove theme editor, aim, jabber, yim
5-
Requires at least: 3.0
6-
Tested up to: 4.8
7-
Stable tag: 1.1.0
3+
Donate link: https://cash.me/$chuckreynolds
4+
Tags: clean, fresh start, new install, clean admin, curly quotes, remove meta box, remove widgets, editor, file editor, no smilies, no trackbacks, no pings, self pings, organize, declutter, clutter, theme editor, rsd links, wlw manifest links, shortlink, dashboard widgets, quick press, dashboard news, remove edit menu, remove editor, remove plugin editor, remove theme editor
5+
Requires at least: 4.0
6+
Tested up to: 4.9
7+
Stable tag: 1.2.0
88
License: GPL-2.0+
99
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1010

1111
Built to run on EVERY WordPress install, selfish fresh start removes unneeded admin and html meta clutter.
1212

1313
== Description ==
14-
This WordPress plugin removes most, in my opinion, unneeded crappy dashboard, post & page widgets, fixes formatted curly quote problems, checks for and removes Hello Dolly, removes junk header tags including the generator tag for extra security, removes update notifications for non-admins, removes old user profile fields like aim, prevents self pinging, removes smilies and trackbacks, and a few other settings that nobody needs either. This is built to be very generalized so it will work with every WordPress site as a good clean-up fresh start and help keep clients out of the editing files.
14+
This WordPress plugin removes most, in my opinion, unneeded crappy dashboard, post and page widgets, fixes formatted curly quote problems, checks for and removes Hello Dolly plugin, removes junk header tags, removes generator header tag for extra security, removes update notifications for non-admins, prevents self-pinging, removes smilies and trackbacks, and a few other settings that nobody needs either. This is built to be very generalized so it will work with every WordPress site as a good clean-up fresh start and help keep clients out of the editing files.
1515

1616
= Current Operations =
1717
* Removed: clean up unneeded header tags including:
@@ -21,31 +21,28 @@ This WordPress plugin removes most, in my opinion, unneeded crappy dashboard, po
2121
* wordpress generator
2222
* shortlink generation
2323
* Removed: admin dashboard widgets:
24-
* quick press
25-
* recent drafts
26-
* recent plugins feed
27-
* wordpress development blog feed
28-
* other wordpress blog news feed
29-
* incoming links box
30-
* yoast seo overview box
31-
* wp socializer box
32-
* w3 total cache news box
33-
* gravity forms box
34-
* bpress right now in forums
35-
* jetpack box
24+
* core: quick draft / your recent drafts
25+
* core: wordpress events and news
26+
* plugin: yoast seo overview box
27+
* plugin: wp socializer box
28+
* plugin: w3 total cache news box
29+
* plugin: gravity forms box
30+
* plugin: bpress right now in forums
31+
* plugin: jetpack box
32+
* plugin: modern tribe rss box (issues/7)
3633
* Removed: post metabox's
3734
* trackbacks
3835
* Removed: page metabox's
3936
* comments box
4037
* discussion box
41-
* Removed: appearance menu theme editor *(some ppl may not like this but it's great for client admins)*
38+
* Removed: appearance menu theme editor
4239
* Removed: plugins editor menu
4340
* Removed: plugins list edit links
4441
* Removed: more jump link to #anchor
4542
* Removed: update notifications for non-admin users
4643
* Removed: potential for self ping backs
4744
* Removed: checks for and nukes Hello Dolly plugin *(sorry @photomatt)*
48-
* Removed: admin user yim, aim, jabber fields
45+
* Off: turn off plugin/theme editor
4946
* Off: turn off global trackback/pingback setting
5047
* Off: turn off global formatting of text to graphic smilies
5148

@@ -63,6 +60,16 @@ If you think you'd like to contribute, Pull Requests on [Develop Branch on Githu
6360
1. That's it. seriously. Everything is done already. Enjoy.
6461

6562
== Changelog ==
63+
= 1.2.0 =
64+
65+
Release Date - 2017-11-14
66+
67+
* tested up to WP 4.9
68+
* removed the removing of old IM profile fields that have been deprecated
69+
* removed the removing of old dashboard widgets that have been merged or deprecated
70+
* updated the minimum required version of WP to 4.0 due to the deprecated widgets
71+
* removed, by request, another news rss feed dashboard box; this one from moderntribe plugins
72+
6673
= 1.1.0 =
6774

6875
Release Date - 2017-03-21

selfish-fresh-start.php

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Plugin Name: Selfish Fresh Start
88
* Plugin URI: https://wordpress.org/plugins/selfish-fresh-start/
99
* Description: Removes clutter and commonly unneeded things in WordPress. Full details in the plugin description.
10-
* Version: 1.1.0
10+
* Version: 1.2.0
1111
* Author: Chuck Reynolds
1212
* Author URI: https://chuckreynolds.us
1313
* License: GPL-2.0+
@@ -115,7 +115,6 @@ public function nuke_after_theme_setup() {
115115
add_action( 'pre_ping', array( $this, 'nuke_self_pings' ) );
116116
add_action( 'admin_init', array( $this, 'nuke_hello_dolly' ) );
117117
add_filter( 'the_content_more_link', array( $this, 'nuke_more_jump_link_anchor' ) );
118-
add_filter( 'user_contactmethods', array( $this, 'nuke_contact_methods' ), 10, 1 );
119118
add_filter( 'content_save_pre', array( $this, 'nuke_curly_other_chars' ) );
120119
add_filter( 'title_save_pre', array( $this, 'nuke_curly_other_chars' ) );
121120

@@ -128,15 +127,18 @@ public function nuke_after_theme_setup() {
128127
*/
129128
public function nuke_dashboard_metaboxes() {
130129

131-
remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); // incoming links box
132-
remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' ); // new plugins box sub
133-
#remove_meta_box('dashboard_right_now', 'dashboard', 'normal'); // at a glance box
134-
#remove_meta_box('dashboard_activity', 'dashboard', 'normal'); // activity box
135-
#remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal'); // recent comments sub
136-
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); // quick draft box
137-
remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' ); // recent drafts box
138-
remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); // wordpress news blog box
139-
remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' ); // other wordpress news box
130+
#remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); // At a Glance
131+
#remove_meta_box( 'network_dashboard_right_now', 'dashboard', 'normal' ); // Network Right Now
132+
#remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' ); // Activity
133+
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); // Quick Draft / Your Recent Drafts
134+
remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); // WordPress Events and News
135+
136+
// from older than WP ~4.0 versions
137+
#remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); // incoming links box (deprecated in 3.8)
138+
#remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' ); // new plugins box (deprecated in 3.8)
139+
#remove_meta_box( 'dashboard_recent_comments','dashboard', 'normal' ); // recent comments sub (now part of activity)
140+
#remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' ); // recent drafts (now part of quick_press)
141+
#remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' ); // other wordpress news (deprecated in 3.8)
140142

141143
}
142144

@@ -154,6 +156,7 @@ public function nuke_plugin_metaboxes() {
154156
remove_meta_box( 'rg_forms_dashboard', 'dashboard', 'normal' ); // gravity forms
155157
remove_meta_box( 'bbp-dashboard-right-now', 'dashboard', 'normal' ); // bbpress right now in forums
156158
remove_meta_box( 'jetpack_summary_widget', 'dashboard', 'normal' ); // jetpack
159+
remove_meta_box( 'tribe_dashboard_widget', 'dashboard', 'normal' ); // modern tribe rss widget
157160

158161
}
159162

@@ -255,21 +258,6 @@ public function nuke_more_jump_link_anchor( $link ) {
255258

256259
}
257260

258-
/**
259-
* Removes obsolete profile fields
260-
*
261-
* @return void
262-
*/
263-
public function nuke_contact_methods( $contactMethods ) {
264-
265-
unset( $contactMethods['yim'] );
266-
unset( $contactMethods['aim'] );
267-
unset( $contactMethods['jabber'] );
268-
269-
return $contactMethods;
270-
271-
}
272-
273261
/**
274262
* Fixes curly quotes and badly formatted characters. One of my bigger pet peeves is curly quotes from word pastes
275263
*

0 commit comments

Comments
 (0)