small improvements

This commit is contained in:
Matthias Pfefferle 2023-07-28 10:34:10 +02:00
parent 835af08848
commit 070c9cae85
2 changed files with 5 additions and 3 deletions

View file

@ -601,10 +601,12 @@ class Base_Object {
*/
public function from_array( $array ) {
foreach ( $array as $key => $value ) {
if ( $value ) {
$key = camel_to_snake_case( $key );
$this->set( $key, $value );
}
}
}
/**
* Convert Object to an array.

View file

@ -450,7 +450,7 @@ class Followers {
*
* @return mixed The Term list of Followers, the format depends on $output.
*/
public static function get_outdated_followers( $number = 50, $older_than = 604800 ) {
public static function get_outdated_followers( $number = 50, $older_than = 86400 ) {
$args = array(
'post_type' => self::POST_TYPE,
'posts_per_page' => $number,