#6465 closed defect (bug) (fixed)
WP 4.3 changes in WP_List_Table
| Reported by: | imath | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3.3 |
| Component: | Administration | Version: | |
| Severity: | blocker | Keywords: | has-patch early |
| Cc: |
Description
In WP32644, WordPress is introducing the get_default_primary_column_name() function into the WP_List_Table class and this new method seems to be required to avoid a notice error. We are concerned for the activity & groups administration screens.
This might evolve during WP 4.3 cycle, just putting this as a reminder.
Attachments (10)
Change History (48)
This ticket was mentioned in Slack in #buddypress by imath. View the logs.
11 years ago
@
11 years ago
See also [WP33016] where the toggle that was introduced results in a rogue button in our rows
#8
follow-up:
↓ 9
@
11 years ago
- Resolution fixed
- Status closed → reopened
For the signups WP_List_Table in multisite configs, the regular user row actions are output under the signup ones.
This appeared since the introduction of the WP_MS_Users_List_Table->handle_row_actions() function see 6465.row_actions.patch
#9
in reply to: ↑ 8
@
11 years ago
Replying to imath:
For the signups WP_List_Table in multisite configs, the regular user row actions are output under the signup ones.
This appeared since the introduction of the
WP_MS_Users_List_Table->handle_row_actions()function see 6465.row_actions.patch
Confirmed. And the patch fixes it, though I think we should return an empty string instead of having an empty method.
The empty method does more-simply satisfy the class/subclass override scenario (by assuming null results) but does not explicitly tell the system to ditch whatever assumptions were made previously (like WP_MS_Users_List_Table::handle_row_actions() does as an example.)
I'll commit to 2.3 branch and trunk so we can release an update when WP4.3.0 ships.
#13
@
11 years ago
In the above commit messages, I incorrectly identified BP_Members_MS_List_Table as BP_Members_List_Table.
#14
@
11 years ago
Worth noting that this problem does not manifest itself when:
- WordPress is in Multi-side mode
- BuddyPress is activated only on the single site (not network activated)
In this funny scenario, the "Manage Signups" menu is added to the wp-admin/network/ dashboard but is probably using the incorrect class. This likely needs it's own ticket, related to this one.
#15
@
11 years ago
This likely needs it's own ticket, related to this one.
Confirmed. This seems more like a bug/quirk in the bp_is_multiblog_mode() implementation. The above mentioned activation configuration causes bp_get_admin_url() and bp_core_do_network_admin() to return results that don't really apply to this setup.
#16
@
11 years ago
- Resolution fixed
- Status closed → reopened
WP 4.3 trunk, BP 2.4 trunk, single site
Toggles for Activities are missing in mobile view per attached screenshot. (groups are fine)
This ticket was mentioned in Slack in #buddypress by djpaul. View the logs.
11 years ago
#18
@
11 years ago
- Resolution → fixed
- Status reopened → closed
@mercime I just tested this on the BP 2.3 branch and WP trunk, and I see the arrows in the place where you've indicated. Don't know what fixed it.
#19
@
11 years ago
@djpaul https://core.trac.wordpress.org/ticket/33313 fixed the arrows :)
There's still some style issues though, alternate color overlapping to the next TD. Attached is a screenshot as seen in Chrome.
#20
@
11 years ago
- Resolution fixed
- Status closed → reopened
I can't figure out how to fix that styling. Help, please.
This ticket was mentioned in Slack in #buddypress by djpaul. View the logs.
11 years ago
#23
@
11 years ago
I think this could be a WP CSS bug.
Changing display:block to display:table-cell works for the following declaration in /wp-admin/css/list-tables.css:
@media screen and (max-width: 782px) {
.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) { display: table-cell; }
}
#24
@
11 years ago
I couldn't figure out what we were adding to the table that was causing it to break with WP's CSS. Were you able to narrow it down to anything specific?
#25
@
11 years ago
Just looked into this.
It has to do with the div.row-actions block. In Activity admin, the 'div.row-actions block is in the second <td>, while on other admin pages, the div.row-actions block is in the first <td>.
That is the gist of the problem.
My CSS patch should fix this for the Activity admin area, but because our div.row-actions block is not in the first <td>, when you click on the arrow to expand the activity, the expanded content doesn't look like other WP admin pages and looks slightly off.
#26
@
11 years ago
@r-a-y Exactly! We also need to remove duplicate <button> in markup. Attached screenshots
#28
@
11 years ago
mercime - Is the duplicate button markup a result of using WP 4.3.0?
I'm not sure if it is. Regardless, duplicate-button-markup.patch should fix this. Had to override the WP_List_Table::row_actions() method to remove the hardcoded <button> markup.
If the duplicate markup happened before WP 4.3.0, we should apply the duplicate markup patch in v2.4.0 since it isn't a regression.
#29
@
11 years ago
@r-a-y Just checked old test install using WP 4.2+ and BP 2.3.1 and there are no button markups within TD's there.
#30
@
11 years ago
Yeah, you're right, mercime!
Looks like WP decided to add an extra <button> in WP_List_Table::row_actions() for v4.3.
duplicate-button-markup.patch above should fix the problem.
#31
@
11 years ago
6465.duplicate-button-markup.patch doesn't fix the problem on trunk (on the Activity wp-admin list table). Also, the copy/paste from WP has a handful of coding standards issues.
#32
@
11 years ago
6465.duplicate-button-markup.patch doesn't fix the problem on trunk (on the Activity wp-admin list table).
Works for me on the Activity admin page. You should only see one <button> in the table row. Specifically, in the td.column-author column.
Are you talking about BP trunk or WP trunk? I'm testing on WP 4.3.0 and BP trunk.
Can someone else verify?
If you're talking about comment:19, you'll also need to apply this patch.
#33
@
11 years ago
WP trunk (the one where they changed the version to 4.4-alpha or something). BP trunk.
I am only applying 6465.duplicate-button-markup.patch which I can confirm removes the duplicate button element. However, that doesn't fix the problem, which is the overlapping backgrounds as shown in Mercime's screenshot here https://buddypress.trac.wordpress.org/ticket/6465#comment:19
What am I doing wrong?
#34
@
11 years ago
See the latter part of my comment:32:
If you're talking about comment:19, you'll also need to apply this patch.
Let me know if this works for you.
Just tested parts where we are using
WP_List_Tablesand found 2 little things we should also fix :button.toggle-rowelement of the primary column.WP_List_Tablesextensions6465.02.patch is 6465.patch + the above 2 points.