PluginProbe
ActivityPub / 8.2.0
ActivityPub v8.2.0
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / templates / oauth-error.php

oauth-error.php in ActivityPub 8.2.0, at templates/oauth-error.php

34 lines 814 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * OAuth Authorization Error Template.
4 *
5 * Renders a styled error page using WordPress login page chrome,
6 * consistent with the consent form in oauth-authorize.php.
7 *
8 * @package Activitypub
9 *
10 * Variables available (passed via include from class-server.php):
11 * @var string $error_message The error message to display.
12 */
13
14 // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- Variables passed via include.
15
16 $login_errors = new WP_Error(
17 'oauth_error',
18 esc_html( $error_message )
19 );
20
21 login_header(
22 esc_html__( 'Authorization Error', 'activitypub' ),
23 '',
24 $login_errors
25 );
26 ?>
27
28 <p style="margin-top: 20px; text-align: center;">
29 <a href="<?php echo esc_url( home_url() ); ?>"><?php esc_html_e( 'Go to homepage', 'activitypub' ); ?></a>
30 </p>
31
32 <?php
33 login_footer();
34