updated is not needed

This commit is contained in:
Matthias Pfefferle 2023-06-23 15:21:14 +02:00
parent 2cacd374dc
commit 6fcd19554a

View file

@ -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( register_post_meta(
self::POST_TYPE, self::POST_TYPE,
'_errors', '_errors',
@ -292,7 +276,7 @@ class Followers {
} }
if ( isset( $object['user_id'] ) ) { if ( isset( $object['user_id'] ) ) {
unset( $object['_user_id'] ); unset( $object['user_id'] );
unset( $object['@context'] ); unset( $object['@context'] );
} }