Server: appserver-7f0f8755-nginx-15961cad18524ec5a9db05f2a6a7e440
Current directory: /code
Software: nginx/1.27.5
Shell Command
Create a new file
Upload file
File: wp-comments-post.php
get_error_data(); if ( ! empty( $data ) ) { wp_die( '
' . $comment->get_error_message() . '
', __( 'Comment Submission Failure' ), array( 'response' => $data, 'back_link' => true, ) ); } else { exit; } } $user = wp_get_current_user(); $cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) ); /** * Fires after comment cookies are set. * * @since 3.4.0 * @since 4.9.6 The `$cookies_consent` parameter was added. * * @param WP_Comment $comment Comment object. * @param WP_User $user Comment author's user object. The user may not exist. * @param bool $cookies_consent Comment author's consent to store cookies. */ do_action( 'set_comment_cookies', $comment, $user, $cookies_consent ); $location = empty( $_POST['redirect_to'] ) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment->comment_ID; // If user didn't consent to cookies, add specific query arguments to display the awaiting moderation message. if ( ! $cookies_consent && 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) { $location = add_query_arg( array( 'unapproved' => $comment->comment_ID, 'moderation-hash' => wp_hash( $comment->comment_date_gmt ), ), $location ); } /** * Filters the location URI to send the commenter after posting. * * @since 2.0.5 * * @param string $location The 'redirect_to' URI sent via $_POST. * @param WP_Comment $comment Comment object. */ $location = apply_filters( 'comment_post_redirect', $location, $comment ); wp_safe_redirect( $location ); exit;
.
27 Items
Change directory
Remove directory
Rename directory
..
30 Items
Change directory
Remove directory
Rename directory
.git
14 Items
Change directory
Remove directory
Rename directory
.gitignore
0.81 KB
Edit
Delete
Copy
Move
Remame
README.md
2.13 KB
Edit
Delete
Copy
Move
Remame
index.php
0.42 KB
Edit
Delete
Copy
Move
Remame
license.txt
19.45 KB
Edit
Delete
Copy
Move
Remame
pantheon.upstream.yml
0.91 KB
Edit
Delete
Copy
Move
Remame
pantheon.yml
0.14 KB
Edit
Delete
Copy
Move
Remame
readme.html
7.24 KB
Edit
Delete
Copy
Move
Remame
wp-activate.php
7.21 KB
Edit
Delete
Copy
Move
Remame
wp-admin
100 Items
Change directory
Remove directory
Rename directory
wp-blog-header.php
0.34 KB
Edit
Delete
Copy
Move
Remame
wp-comments-post.php
2.27 KB
Edit
Delete
Copy
Move
Remame
wp-config-local-sample.php
1.14 KB
Edit
Delete
Copy
Move
Remame
wp-config-pantheon.php
3.91 KB
Edit
Delete
Copy
Move
Remame
wp-config-sample.php
2.96 KB
Edit
Delete
Copy
Move
Remame
wp-config.php
2.86 KB
Edit
Delete
Copy
Move
Remame
wp-content
7 Items
Change directory
Remove directory
Rename directory
wp-cron.php
5.51 KB
Edit
Delete
Copy
Move
Remame
wp-includes
270 Items
Change directory
Remove directory
Rename directory
wp-links-opml.php
2.44 KB
Edit
Delete
Copy
Move
Remame
wp-load.php
3.84 KB
Edit
Delete
Copy
Move
Remame
wp-login.php
50.04 KB
Edit
Delete
Copy
Move
Remame
wp-mail.php
8.33 KB
Edit
Delete
Copy
Move
Remame
wp-settings.php
28.1 KB
Edit
Delete
Copy
Move
Remame
wp-signup.php
33.58 KB
Edit
Delete
Copy
Move
Remame
wp-trackback.php
4.77 KB
Edit
Delete
Copy
Move
Remame
xmlrpc.php
3.17 KB
Edit
Delete
Copy
Move
Remame