We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39bec95 commit 461359aCopy full SHA for 461359a
helpers/page-meta.php
@@ -12,6 +12,11 @@ public static function edit( &$data ){
12
}
13
14
15
+ public static function read( &$data ){
16
+ if( !array_key_exists('meta', $data ) ) $data['meta'] = array();
17
+ if( is_string( $data['meta'] ) ) $data['meta'] = json_decode($data['meta'], true);
18
+ }
19
+
20
public static function fields( &$data ){
21
$view = View::do_fetch( getPath('views/admin/page-meta-fields.php'), $data );
22
echo $view; // return instead?
0 commit comments