updated is not needed
This commit is contained in:
parent
2cacd374dc
commit
6fcd19554a
1 changed files with 1 additions and 17 deletions
|
@ -110,22 +110,6 @@ class Followers {
|
|||
)
|
||||
);
|
||||
|
||||
register_post_meta(
|
||||
self::POST_TYPE,
|
||||
'updated',
|
||||
array(
|
||||
'type' => 'string',
|
||||
'single' => true,
|
||||
'sanitize_callback' => function( $value ) {
|
||||
if ( ! is_numeric( $value ) && (int) $value !== $value ) {
|
||||
$value = \time();
|
||||
}
|
||||
|
||||
return $value;
|
||||
},
|
||||
)
|
||||
);
|
||||
|
||||
register_post_meta(
|
||||
self::POST_TYPE,
|
||||
'_errors',
|
||||
|
@ -292,7 +276,7 @@ class Followers {
|
|||
}
|
||||
|
||||
if ( isset( $object['user_id'] ) ) {
|
||||
unset( $object['_user_id'] );
|
||||
unset( $object['user_id'] );
|
||||
unset( $object['@context'] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue