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 PHP7 Compatibility issues #3830

Merged
merged 5 commits into from
Dec 8, 2016
Merged

Fix PHP7 Compatibility issues #3830

merged 5 commits into from
Dec 8, 2016

Conversation

JoryHogeveen
Copy link
Member

@JoryHogeveen JoryHogeveen commented Oct 27, 2016

See #3828

  • Constructors
  • PodsData.php
  • deprecated/deprecated.php

@jimtrue jimtrue added the Status: In Progress Issue or PR is currently in progress but not yet done label Oct 27, 2016
@JoryHogeveen
Copy link
Member Author

@sc0ttkclark Please check deprecated.php.

One problem with the pod_query function in deprecated.php. $wpdb->dbh is a protected property and not allowed. How did this even work at all?!

What would you like to do with this function? Is it even used anywhere?

@JoryHogeveen JoryHogeveen added this to the Pods 2.6.8 milestone Oct 27, 2016

$column_data = array();

while ( $column_row = mysql_fetch_assoc( $describe_data ) ) {
foreach ( $describe_data as $column_row ) {
$column_data[] = $column_row;
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function could be simplified by just using $describe_data instead of creating a new var ($column_data) since the contents will be the same when using $wpdb.

@sc0ttkclark
Copy link
Member

If there's a way to refactor pod_query to act like it does now but have it work, great. Otherwise I'm okay with throwing doing it wrong notices and map the query directly to pods_query() because we can't do anything further at that point.

@sc0ttkclark sc0ttkclark closed this Dec 8, 2016
@sc0ttkclark sc0ttkclark reopened this Dec 8, 2016
@sc0ttkclark sc0ttkclark removed the Status: In Progress Issue or PR is currently in progress but not yet done label Dec 8, 2016
@sc0ttkclark sc0ttkclark merged commit c52bbec into 2.x Dec 8, 2016
@JoryHogeveen JoryHogeveen deleted the feature/#3828 branch January 13, 2017 03:08
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.

3 participants