Support » Plugin: All in One SEO Pack » Paged Format Subfix does appear on every page

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Peter Baylies

    (@pbaylies)

    Zoker,

    What is your website? Is this showing up on every page, or just the ones that have pagination? You can also work around this by deleting the Paged Format text.

    I’d the same problem, but I get a simple solution.

    How to fixed this bug?

    On aioseop_class.php you must search for this function:

    function paged_title( $title ) {
    		// the page number if paged
    		global $paged;
    		global $aioseop_options;
    		// simple tagging support
    		global $STagging;
    		$page = get_query_var( 'page' );
    		if ( $paged > $page ) $page = $paged;
    		if ( is_paged() || ( isset($STagging) && $STagging->is_tag_view() && $paged ) || $page ) {
    			$part = $this->internationalize( $aioseop_options['aiosp_paged_format'] );
    			if ( isset( $part ) || !empty( $part ) ) {
    				$part = " " . trim( $part );
    				$part = str_replace( '%page%', $page, $part );
    				$this->log( "paged_title() [$title] [$part]" );
    				$title .= $part;
    			}
    		}
    		return $title;
    	}

    And place this one:

    function paged_title( $title ) {
    		// the page number if paged
    		global $paged;
    		global $aioseop_options;
    		// simple tagging support
    		global $STagging;
    		$page = get_query_var( 'page' );
    		if ( $paged > $page ) $page = $paged;
    		if ( is_paged() || ( isset($STagging) && $STagging->is_tag_view() && $paged ) || $page > 1 ) {
    			$part = $this->internationalize( $aioseop_options['aiosp_paged_format'] );
    			if ( isset( $part ) || !empty( $part ) ) {
    				$part = " " . trim( $part );
    				$part = str_replace( '%page%', $page, $part );
    				$this->log( "paged_title() [$title] [$part]" );
    				$title .= $part;
    			}
    		}
    		return $title;
    	}

    The bug is the line 1439:

    Original: if ( is_paged() || ( isset($STagging) && $STagging->is_tag_view() && $paged ) || $page ) {
    Fixed: if ( is_paged() || ( isset($STagging) && $STagging->is_tag_view() && $paged ) || $page > 1 ) {

    And that’s all.

    Please fix it on the next version.

    Thanks a lot for your great job.

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Plugin Contributor Peter Baylies

    (@pbaylies)

    Thanks Emilio, that is correct; this will be fixed in the next version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Paged Format Subfix does appear on every page’ is closed to new replies.