Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Array check

  • Loading branch information...
commit a37b0815cbb0fda1e0795252a0fd0cee5986b3d9 1 parent 77c7ccc
@kidfiction kidfiction authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 cf-tax-post-binding.php
View
10 cf-tax-post-binding.php
@@ -325,10 +325,12 @@ public static function on_admin_head_post() {
public static function on_admin_head_edit() {
global $current_screen;
$connection_settings = array();
- foreach (self::$taxonomies as $record) {
- if ($record['post_type'] == $current_screen->post_type) {
- $connection_settings = $record;
- break;
+ if ( is_array( self::$taxonomies ) ) {
+ foreach (self::$taxonomies as $record) {
+ if ($record['post_type'] == $current_screen->post_type) {
+ $connection_settings = $record;
+ break;
+ }
}
}
if (empty($connection_settings)) {
Please sign in to comment.
Something went wrong with that request. Please try again.