diff --git a/.github/workflows/wp-phpunit.yml b/.github/workflows/wp-phpunit.yml index da84703..35e6717 100644 --- a/.github/workflows/wp-phpunit.yml +++ b/.github/workflows/wp-phpunit.yml @@ -1,7 +1,9 @@ name: WordPress Unit Testing on: - push: - pull_request: + push: + branches: + - main + pull_request: jobs: phpunit: runs-on: ubuntu-latest @@ -23,8 +25,12 @@ jobs: - wp-version: '6.5' php-versions: '7.1' steps: + - name: Install svn + run: | + sudo apt-get update + sudo apt-get install subversion - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/includes/class-admin.php b/includes/class-admin.php index e38cbad..c4601a1 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -417,6 +417,16 @@ public static function register_settings() { 'default' => 1, ) ); + register_setting( + 'webmention', + 'webmention_avatar_store_enable', + array( + 'type' => 'int', + 'description' => esc_html__( 'Store Avatars Locally', 'webmention' ), + 'show_in_rest' => true, + 'default' => 0, + ) + ); register_setting( 'webmention', 'webmention_separate_comment', diff --git a/templates/webmention-settings.php b/templates/webmention-settings.php index b7c7d07..3ccb783 100644 --- a/templates/webmention-settings.php +++ b/templates/webmention-settings.php @@ -14,7 +14,7 @@