updated plugin Simple Local Avatars
version 2.7.4
This commit is contained in:
@ -307,6 +307,8 @@ class Simple_Local_Avatars {
|
||||
$user_id = (int) $id_or_email;
|
||||
} elseif ( is_object( $id_or_email ) && ! empty( $id_or_email->user_id ) ) {
|
||||
$user_id = (int) $id_or_email->user_id;
|
||||
} elseif ( $id_or_email instanceof WP_User ) {
|
||||
$user_id = $id_or_email->ID;
|
||||
} elseif ( $id_or_email instanceof WP_Post && ! empty( $id_or_email->post_author ) ) {
|
||||
$user_id = (int) $id_or_email->post_author;
|
||||
} elseif ( is_string( $id_or_email ) ) {
|
||||
@ -524,13 +526,13 @@ class Simple_Local_Avatars {
|
||||
*/
|
||||
$this->avatar_ratings = array(
|
||||
/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */
|
||||
'G' => __( 'G — Suitable for all audiences', ),
|
||||
'G' => __( 'G — Suitable for all audiences' ),
|
||||
/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */
|
||||
'PG' => __( 'PG — Possibly offensive, usually for audiences 13 and above', ),
|
||||
'PG' => __( 'PG — Possibly offensive, usually for audiences 13 and above' ),
|
||||
/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */
|
||||
'R' => __( 'R — Intended for adult audiences above 17', ),
|
||||
'R' => __( 'R — Intended for adult audiences above 17' ),
|
||||
/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */
|
||||
'X' => __( 'X — Even more mature than above', ),
|
||||
'X' => __( 'X — Even more mature than above' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user