Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix notice appearing in WP 4.3-alpha #429

Merged
merged 1 commit into from Jun 6, 2015
Merged

Conversation

GaryJones
Copy link
Member

Due to WordPress/WordPress@4c0c7fd, WP 4.3 now expects $this->_column_headers property in the list table object to have 4 entries. This commit fixes the offset notice that otherwise appears.

In WP 4.2, the list() call inside single_row_columns() simply drops the extra values, so this is backwards compatible.

Due to WordPress/WordPress@4c0c7fd, WP 4.3 now expects `$this->_column_headers` property in the list table object to have 4 entries. This commit fixes the offset notice that otherwise appears.

In 4.2, the `list()` call inside `single_row_columns()` simply drops the extra values, so it's backwards compatible.
@GaryJones
Copy link
Member Author

@jrfnl Any clue why we might be manually populating the $_column_headers property instead of letting WP handle that?

@GaryJones GaryJones added this to the 2.5.0 milestone Jun 4, 2015
jrfnl added a commit that referenced this pull request Jun 6, 2015
Fix notice appearing in WP 4.3-alpha
@jrfnl jrfnl merged commit fccafff into develop Jun 6, 2015
@jrfnl jrfnl deleted the feature/fix-offset-notice branch June 6, 2015 01:14
@jrfnl
Copy link
Contributor

jrfnl commented Jun 6, 2015

Any clue why we might be manually populating the $_column_headers property instead of letting WP handle that?

At first glance - because the normal way of populating it involves screen object related functions (get_column_headers(), get_hidden_columns()) which would then need to be filtered or set.

@GaryJones
Copy link
Member Author

This may be one we can address in 3.0.0 then.

@jrfnl
Copy link
Contributor

jrfnl commented Jun 6, 2015

We do need to have something left to do after 3.0 as well though ;-)

@jrfnl
Copy link
Contributor

jrfnl commented Jun 14, 2015

Looks like there is some fall-out from this: Fatal error: Call to undefined method TGMPA_List_Table::get_primary_column_name() in WP 3.9.

@jrfnl
Copy link
Contributor

jrfnl commented Jun 14, 2015

Should be fixed by PR #432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants