WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 19 months ago

Last modified 19 months ago

#19972 closed enhancement (fixed)

New Dashboard Welcome Area cannot be changed or removed

Reported by: npetetin Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.3.1
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Although every dashboard content element has been customizable for a long time, 3.3 introduced Welcome Area, which is great actually but completely hard-coded! No way to change any bit or remove it without changing wp-admin/index.php itself!

Please call 'wp_welcome_panel' via a new action hook ASAP.

Attachments (1)

19972.diff (627 bytes) - added by lightningspirit 2 years ago.
Creates a new action hook inside wp-admin/index.php to solve the issue realted to wp_welcome_panel() being called hardcoded

Download all attachments as: .zip

Change History (16)

comment:1 nacin2 years ago

We *should* move it to a hook, but see how http://wordpress.org/extend/plugins/hide-welcome-panel-for-multisite/ handles it.

comment:2 npetetin2 years ago

The only thing this plugin does is hiding it by default, am I right? It still may be displayed by checking the screen option with the exact same hard-coded content. So it doesn't fix the issue at all, it's just hiding it behind an option.

What's definitely required is the same level of customization by plugins as the dashboard had reached until now. Without it, it's just a 3 year step back.

WP has reached a high level of maturity, especially since version 3. It has attracted a large amount of business projects and many professional solutions now rely on it. So when such new features are added, please give them the same level of maturity. It's the exact same issue with the new about page by the way...

comment:3 TJNowell2 years ago

What I'd really like to be able to do is add in the extra items for custom themes etc so that New clients don't end up with a new WordPress banner followed by a 'hey new user here's the stuff one of your superiors paid us to add' double whammy, with two separate UIs etc

Version 0, edited 2 years ago by TJNowell (next)

comment:4 senlin2 years ago

  • Cc senlinonline@… added

Clearly and unfortunately this has not been solved for the upcoming release. So for now there is only the possibility to hide the panel for registered users? Hiding is not the same as removing and as you can remove the rest of the dashboard relatively easily, this should definitely be possible for this intrusive panel!

// credits EAMann freely adapted from Andrew Nacin: http://wordpress.stackexchange.com/a/36404/2015
add_action( 'load-index.php', 'hide_welcome_panel' );

function hide_welcome_panel() {
    $user_id = get_current_user_id();

    if ( 1 == get_user_meta( $user_id, 'show_welcome_panel', true ) )
        update_user_meta( $user_id, 'show_welcome_panel', 0 );
}

lightningspirit2 years ago

Creates a new action hook inside wp-admin/index.php to solve the issue realted to wp_welcome_panel() being called hardcoded

comment:5 lightningspirit2 years ago

  • Keywords has-patch 2nd-opinion dev-feedback added
  • Version changed from 3.3.1 to 3.4

comment:6 SergeyBiryukov2 years ago

  • Version changed from 3.4 to 3.3.1

Version number indicates when the bug was initially introduced/reported.

comment:7 bananastalktome2 years ago

  • Cc bananastalktome@… added

+1 on this. Also, why is the edit_theme_options capability check used as a shortcut out of the wp_welcome_panel function? The "Basic Settings" section still applies to users without this capability.

comment:8 bpetty22 months ago

  • Cc bpetty added

I believe this is resolved in 3.4, and since it's not really a "bug", I think this can be closed now.

comment:9 bpetty22 months ago

  • Resolution set to fixed
  • Status changed from new to closed

comment:10 ocean9022 months ago

  • Resolution fixed deleted
  • Severity changed from major to normal
  • Status changed from closed to reopened

Nothing fixed here.

comment:11 npetetin22 months ago

Thank you ocean90 to reopen it, there's absolutely nothing new about it in WP 3.4!
Please see 19972.diff, this is exactly what to do in my opinion.

comment:12 martythornley21 months ago

  • Cc marty@… added

Related to #21331.

I added a patch there for new filters that allow you to fully manipulate the whole dashboard page.

Last edited 21 months ago by SergeyBiryukov (previous) (diff)

comment:13 helenyhou19 months ago

  • Keywords 2nd-opinion dev-feedback removed
  • Milestone changed from Awaiting Review to 3.5
  • Resolution set to fixed
  • Status changed from reopened to closed
  • Type changed from defect (bug) to enhancement

Actually, #21331 looks to me a duplicate in intent, and we can call this fixed in [22018].

comment:14 helenyhou19 months ago

#21331 was marked as a duplicate.

comment:15 npetetin19 months ago

Perfect with [22018].

Thanks.

Note: See TracTickets for help on using tickets.