AnsPress_Rewrite::bp_com_paged( array $args )

Description #

BuddyPress pagination fix.

Parameters #

  • $args
    array (Required) Arguments.

Source #

File: includes/rewrite.php

	public static function bp_com_paged( $args ) {
		if ( function_exists( 'bp_current_component' ) ) {
			$bp_com = bp_current_component();

			if ( 'questions' === $bp_com || 'answers' === $bp_com ) {
				return preg_replace( '/page.([0-9]+)./', '?paged=$1', $args );
			}
		}

		return $args;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment