HEX
Server: Apache
System: Linux top 5.8.11-1.el7.elrepo.x86_64 #1 SMP Tue Sep 22 18:18:35 EDT 2020 x86_64
User: www (1000)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.018111.cn/wp-content/plugins/wp-user-manager/templates/profiles/comments.php
<?php
/**
 * The Template for displaying the profile comments tab content.
 *
 * This template can be overridden by copying it to yourtheme/wpum/profiles/comments.php
 *
 * HOWEVER, on occasion WPUM will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @version 1.0.0
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$user_comments = wpum_get_comments_for_profile( $data->user->ID );

?>

<div id="profile-comments">

	<?php
	if ( ! empty( $user_comments['items'] ) ) :
		foreach ( $user_comments['items'] as $user_comment ) :
			?>

			<div class="wpum-single-comment" id="wpum-comment-<?php echo esc_attr( $user_comment->comment_ID ); ?>">

			<?php
			$user_comment_content = wp_trim_words( $user_comment->comment_content, 13 );
			$the_post             = get_the_title( $user_comment->comment_post_ID );
			$the_permalink        = get_post_permalink( $user_comment->comment_post_ID );
			$the_date             = get_comment_date( get_option( 'date_format' ), $user_comment->comment_ID );
			?>

			<p>
				<?php
				// translators: %1$s user comment count %2$s post permalink %3$s post %4$s post date
				echo wp_kses_post( sprintf( _x( '"%1$s" on <a href="%2$s">%3$s</a>, %4$s.', 'This text displays the comments left by the user on his profile page.', 'wp-user-manager' ), $user_comment_content, $the_permalink, $the_post, $the_date ) );
				?>
			</p>

			</div>

			<?php endforeach; ?>
			<div id="profile-pagination">
			<?php
			echo wp_kses_post( paginate_links( array(
				'base'      => get_pagenum_link( 1 ) . '%_%',
				'current'   => $user_comments['current'],
				'total'     => $user_comments['total'],
				'prev_text' => sprintf( '<i></i> %1$s', esc_html__( 'Newer Comments', 'wp-user-manager' ) ),
				'next_text' => sprintf( '%1$s <i></i>', esc_html__( 'Older Comments', 'wp-user-manager' ) ),
				'end_size'  => 2,
				'mid-size'  => 3,
				'format'    => '/page/%#%',
			) ) );
			?>
			</div>
			<?php
		else :

			WPUM()->templates
				->set_template_data( array(
					// translators: %s user display name
					'message' => sprintf( esc_html__( '%s has not made any comment yet.', 'wp-user-manager' ), apply_filters( 'wpum_user_display_name', $data->user->display_name, $data->user ) ),
				) )
				->get_template_part( 'messages/general', 'warning' );

			endif;

		?>

</div>