Skip to content

"total" variable value may not be getting calculated properly in widget template. #37

@tw2113

Description

@tw2113

templates/wp-contributions-core-widget-template.php

<a href="<?php echo esc_url( 'https://core.trac.wordpress.org/search?q=' . $user . '&noquickjump=1&changeset=on&max=20' ); ?>">
	<?php
		if ( 2 === $total ) {
			esc_html_e( "View both tickets on Trac.", 'wp-contributions' );
		} else {
			printf( _n( "View the ticket on Trac.", "View all %d tickets on Trac.", $total, 'wp-contributions' ), $total );
		}
	?>
</a>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions