Skip to content

Commit 5ff43e1

Browse files
committed
Rename Avatar class to Avatars and update references
Renamed the Avatar class and its file to Avatars for consistency. Updated all references in activitypub.php to use the new Avatars class.
1 parent 299c898 commit 5ff43e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

activitypub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function rest_init() {
7070
function plugin_init() {
7171
\add_action( 'init', array( __NAMESPACE__ . '\Activitypub', 'init' ) );
7272
\add_action( 'init', array( __NAMESPACE__ . '\Attachments', 'init' ) );
73-
\add_action( 'init', array( __NAMESPACE__ . '\Avatar', 'init' ) );
73+
\add_action( 'init', array( __NAMESPACE__ . '\Avatars', 'init' ) );
7474
\add_action( 'init', array( __NAMESPACE__ . '\Comment', 'init' ) );
7575
\add_action( 'init', array( __NAMESPACE__ . '\Dispatcher', 'init' ) );
7676
\add_action( 'init', array( __NAMESPACE__ . '\Embed', 'init' ) );

includes/class-avatar.php renamed to includes/class-avatars.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Avatar class file.
3+
* Avatars class file.
44
*
55
* @package Activitypub
66
*/
@@ -10,9 +10,9 @@
1010
use Activitypub\Collection\Remote_Actors;
1111

1212
/**
13-
* ActivityPub Avatar class.
13+
* ActivityPub Avatars class.
1414
*/
15-
class Avatar {
15+
class Avatars {
1616
/**
1717
* Initialize the class, registering WordPress hooks.
1818
*/

0 commit comments

Comments
 (0)