@@ 177-183 (lines=7) @@ | ||
174 | ||
175 | $metaboxes = array(); |
|
176 | ||
177 | foreach ( $wp_meta_boxes[ $post_type ] as $priorities ) { |
|
178 | foreach ( $priorities as $priority => $_metaboxes ) { |
|
179 | foreach ( $_metaboxes as $metabox ) { |
|
180 | $metaboxes[ $metabox['id'] ] = $metabox['id']; |
|
181 | } |
|
182 | } |
|
183 | } |
|
184 | ||
185 | return $metaboxes; |
|
186 | } |
@@ 78-89 (lines=12) @@ | ||
75 | } |
|
76 | ||
77 | foreach ( $wp_meta_boxes as $posttype => $context ) { |
|
78 | foreach ( $context as $priorities ) { |
|
79 | foreach ( $priorities as $priority => $_metaboxes ) { |
|
80 | foreach ( $_metaboxes as $metabox ) { |
|
81 | // Metabox has been removed |
|
82 | if ( ! isset( $metabox['id'] ) ) { |
|
83 | continue; |
|
84 | } |
|
85 | ||
86 | $metaboxes[ $posttype ][ $metabox['id'] ] = $metabox['title']; |
|
87 | } |
|
88 | } |
|
89 | } |
|
90 | } |
|
91 | ||
92 |