Plugin Directory

Changeset 3435099


Ignore:
Timestamp:
01/08/2026 12:07:33 PM (3 months ago)
Author:
wpeverest
Message:

Update to version 4.4.9 from GitHub

Location:
user-registration
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • user-registration/tags/4.4.9/CHANGELOG.txt

    r3413561 r3435099  
     1= 4.4.9    - 08/01/2026 =
     2* Security - Fixed XSS vulnerability for delete users.
     3
    14= 4.4.8    - 07/12/2025 =
    25* Tweak    - Fixed empty sdk url.
  • user-registration/tags/4.4.9/includes/abstracts/abstract-ur-list-table.php

    r3095484 r3435099  
    264264                case 'bulk_trash':
    265265                case 'trash':
     266                    check_admin_referer( 'bulk-' . $this->_args['plural'] );
     267
    266268                    if ( ! current_user_can( 'delete_posts' ) ) {
    267269                        wp_die( esc_html__( 'You do not have permission to trash posts!', 'user-registration' ) );
     
    270272                        $this->bulk_trash( $post_ids );
    271273                    }
     274
    272275                    break;
    273276
    274277                case 'bulk_untrash':
    275278                case 'untrash':
     279                    check_admin_referer( 'bulk-' . $this->_args['plural'] );
     280
    276281                    if ( ! current_user_can( 'edit_posts' ) ) {
    277282                        wp_die( esc_html__( 'You do not have permission to untrash posts!', 'user-registration' ) );
     
    280285                        $this->bulk_untrash( $post_ids );
    281286                    }
     287
    282288                    break;
    283289
    284290                case 'bulk_delete':
    285291                case 'delete':
     292                    check_admin_referer( 'bulk-' . $this->_args['plural'] );
     293
    286294                    if ( ! current_user_can( 'delete_posts' ) ) {
    287295                        wp_die( esc_html__( 'You do not have permission to delete posts!', 'user-registration' ) );
  • user-registration/tags/4.4.9/languages/user-registration.pot

    r3413561 r3435099  
    1 # Copyright (C) 2025 WPEverest
     1# Copyright (C) 2026 WPEverest
    22# This file is distributed under the same license as the User Registration & Membership plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: User Registration & Membership 4.4.8\n"
     5"Project-Id-Version: User Registration & Membership 4.4.9\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/user-registration\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-12-07T15:35:51+00:00\n"
     12"POT-Creation-Date: 2026-01-08T12:06:21+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    481481
    482482#: includes/abstracts/abstract-ur-list-table.php:258
    483 #: includes/abstracts/abstract-ur-list-table.php:298
     483#: includes/abstracts/abstract-ur-list-table.php:306
    484484#: includes/admin/class-ur-admin-export-users.php:51
    485485#: includes/admin/class-ur-admin-import-export-forms.php:51
     
    493493msgstr ""
    494494
    495 #: includes/abstracts/abstract-ur-list-table.php:267
     495#: includes/abstracts/abstract-ur-list-table.php:269
    496496msgid "You do not have permission to trash posts!"
    497497msgstr ""
    498498
    499 #: includes/abstracts/abstract-ur-list-table.php:277
     499#: includes/abstracts/abstract-ur-list-table.php:282
    500500msgid "You do not have permission to untrash posts!"
    501501msgstr ""
    502502
    503 #: includes/abstracts/abstract-ur-list-table.php:287
    504 #: includes/abstracts/abstract-ur-list-table.php:296
     503#: includes/abstracts/abstract-ur-list-table.php:295
     504#: includes/abstracts/abstract-ur-list-table.php:304
    505505msgid "You do not have permission to delete posts!"
    506506msgstr ""
    507507
    508 #: includes/abstracts/abstract-ur-list-table.php:340
     508#: includes/abstracts/abstract-ur-list-table.php:348
    509509msgid "Copy of "
    510510msgstr ""
    511511
    512 #: includes/abstracts/abstract-ur-list-table.php:487
     512#: includes/abstracts/abstract-ur-list-table.php:495
    513513msgid "Empty trash"
    514514msgstr ""
    515515
    516 #: includes/abstracts/abstract-ur-list-table.php:564
     516#: includes/abstracts/abstract-ur-list-table.php:572
    517517msgid "Y/m/d g:i:s A"
    518518msgstr ""
    519519
    520520#. translators: %s - Human readable time
    521 #: includes/abstracts/abstract-ur-list-table.php:577
     521#: includes/abstracts/abstract-ur-list-table.php:585
    522522msgid "%s ago"
    523523msgstr ""
    524524
    525 #: includes/abstracts/abstract-ur-list-table.php:581
     525#: includes/abstracts/abstract-ur-list-table.php:589
    526526msgid "Y/m/d"
    527527msgstr ""
    528528
    529 #: includes/abstracts/abstract-ur-list-table.php:664
     529#: includes/abstracts/abstract-ur-list-table.php:672
    530530#: includes/admin/settings/class-ur-users-list-table.php:670
    531531#: includes/admin/views/html-admin-page-form-templates.php:47
     
    1182811828msgstr ""
    1182911829
    11830 #: user-registration.php:643
     11830#: user-registration.php:659
    1183111831msgid "As <strong>User Registration & Membership Pro</strong> is active, <strong>User Registration Free</strong> is now not needed."
    1183211832msgstr ""
  • user-registration/tags/4.4.9/readme.txt

    r3413561 r3435099  
    55Requires PHP: 7.2
    66Tested up to: 6.9
    7 Stable tag: 4.4.8
     7Stable tag: 4.4.9
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    258258
    259259== Changelog ==
     260
     261= 4.4.9    - 08/01/2026 =
     262* Security - Fixed XSS vulnerability for delete users.
    260263
    261264= 4.4.8    - 07/12/2025 =
  • user-registration/tags/4.4.9/user-registration.php

    r3413561 r3435099  
    44 * Plugin URI: https://wpuserregistration.com/
    55 * Description: The most flexible User Registration and Membership plugin for WordPress.
    6  * Version: 4.4.8
     6 * Version: 4.4.9
    77 * Author: WPEverest
    88 * Author URI: https://wpuserregistration.com
     
    3636         * @var string
    3737         */
    38         public $version = '4.4.8';
     38        public $version = '4.4.9';
    3939
    4040        /**
     
    113113            $this->init_hooks();
    114114            add_action( 'plugins_loaded', array( $this, 'objects' ), 1 );
    115             add_action( 'in_plugin_update_message-' . UR_PLUGIN_BASENAME, array( __CLASS__, 'in_plugin_update_message' ) );
     115            add_action( 'in_plugin_update_message-' . UR_PLUGIN_BASENAME, array( __CLASS__, 'in_plugin_update_message' ), 10, 2 );
    116116
    117117            do_action( 'user_registration_loaded' );
     
    481481         * @param array $args Plugin args.
    482482         */
    483         public static function in_plugin_update_message( $args ) {
    484             $transient_name = 'ur_upgrade_notice_' . $args['Version'];
     483        public static function in_plugin_update_message( $plugin_data, $response ) {
     484            if ( empty( $response ) || empty( $response->new_version ) ) {
     485                return;
     486            }
     487            $new_version = (string) $response->new_version;
     488
     489            $transient_name = 'ur_upgrade_notice_' . $new_version;
    485490            $upgrade_notice = get_transient( $transient_name );
    486491
    487492            if ( false === $upgrade_notice ) {
    488                 $response = wp_safe_remote_get( 'https://plugins.svn.wordpress.org/user-registration/trunk/readme.txt' );
    489 
    490                 if ( ! is_wp_error( $response ) && ! empty( $response['body'] ) ) {
    491                     $upgrade_notice = self::parse_update_notice( $response['body'], $args['new_version'] );
    492                     set_transient( $transient_name, $upgrade_notice, DAY_IN_SECONDS );
     493                $http_response = wp_safe_remote_get( 'https://plugins.svn.wordpress.org/user-registration/trunk/readme.txt' );
     494
     495                if ( ! is_wp_error( $http_response ) && ! empty( $http_response['body'] ) ) {
     496                    $upgrade_notice = self::parse_update_notice( $http_response['body'], $new_version );
     497                    set_transient( $transient_name, $upgrade_notice, 3 * DAY_IN_SECONDS );
    493498                }
    494499            }
     
    504509         */
    505510        private static function parse_update_notice( $content, $new_version ) {
    506             // Output Upgrade Notice.
    507             $matches        = null;
    508             $regexp         = '~==\s*Upgrade Notice\s*==\s*=\s*(.*)\s*=(.*)(=\s*' . preg_quote( UR_VERSION ) . '\s*=|$)~Uis';
    509511            $upgrade_notice = '';
    510512
    511             if ( preg_match( $regexp, $content, $matches ) ) {
    512 
    513                 $version = trim( $matches[1] );
    514                 $notices = (array) preg_split( '~[\r\n]+~', trim( $matches[2] ) );
    515 
    516                 // Check the latest stable version and ignore trunk.
    517                 if ( $version === $new_version && version_compare( UR_VERSION, $version, '<' ) ) {
     513            // Match all version blocks under "== Upgrade Notice =="
     514            $blocks_regex = '~=\s*([\d\.]+)\s*=(.*?)(?==\s*[\d\.]+\s*=|$)~s';
     515            if ( preg_match_all( $blocks_regex, $content, $matches, PREG_SET_ORDER ) ) {
     516                foreach ( $matches as $match ) {
     517                    $version_line = trim( $match[1] );
     518                    $block_text   = trim( $match[2] );
     519
     520                    // Only process the block if it matches $new_version
     521                    if ( $version_line !== $new_version ) {
     522                        continue;
     523                    }
     524
     525                    $notices = (array) preg_split( '~[\r\n]+~', $block_text );
    518526
    519527                    $upgrade_notice .= '<div class="ur_plugin_upgrade_notice">';
     
    521529
    522530                    foreach ( $notices as $line ) {
    523 
    524                         $line = trim( $line ); // Remove extra whitespace
    525 
     531                        $line = trim( $line );
    526532                        if ( empty( $line ) ) {
    527                             continue; // Skip empty lines
     533                            continue;
    528534                        }
    529535
    530                         $line = preg_replace( '~\[([^\]]*)\]\(([^\)]*)\)~', '<a href="$2">$1</a>', $line );
    531 
    532                         $line = preg_replace( '~^###\s*(.*)~', '<p class="upgrade-title" style="font-size: 14px;font-weight: 600" >$1</p>', $line );
    533 
    534                         if ( ! preg_match( '~^<h3>|<p>|<a |<ul>|<ol>|<li>~', $line ) ) {
    535                             $line = '<p style="font-size: 12px;>' . $line . '</p>';
     536                        $line = preg_replace(
     537                            '~\[\s*([^\]]+)\s*\]\s*\(\s*([^\)]+)\s*\)~',
     538                            '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>',
     539                            $line
     540                        );
     541
     542                        // Convert headings
     543                        if ( preg_match( '~^###\s*(.*)~', $line, $heading ) ) {
     544                            $line = '<p class="upgrade-title" style="font-size:13px;font-weight:600;">' . $heading[1] . '</p>';
     545                        } elseif ( preg_match( '~^##\s*(.*)~', $line, $heading ) ) {
     546                            $line = '<p class="upgrade-heading" style="font-size:14px;font-weight:600;">' . $heading[1] . '</p>';
     547                        } else {
     548                            $line = '<p style="font-size:12px;">' . $line . '</p>';
    536549                        }
    537550
    538                         $upgrade_notice .= wp_kses_post( trim( $line ) );
     551                        $upgrade_notice .= wp_kses_post( $line );
    539552                    }
    540553
    541                     $upgrade_notice .= '</div> ';
    542                     $upgrade_notice .= '</div> ';
     554                    $upgrade_notice .= '</div>';
     555                    $upgrade_notice .= '</div>';
     556
     557                    break;
    543558                }
    544559            }
     560
    545561            return wp_kses_post( $upgrade_notice );
    546562        }
  • user-registration/trunk/CHANGELOG.txt

    r3413561 r3435099  
     1= 4.4.9    - 08/01/2026 =
     2* Security - Fixed XSS vulnerability for delete users.
     3
    14= 4.4.8    - 07/12/2025 =
    25* Tweak    - Fixed empty sdk url.
  • user-registration/trunk/includes/abstracts/abstract-ur-list-table.php

    r3095484 r3435099  
    264264                case 'bulk_trash':
    265265                case 'trash':
     266                    check_admin_referer( 'bulk-' . $this->_args['plural'] );
     267
    266268                    if ( ! current_user_can( 'delete_posts' ) ) {
    267269                        wp_die( esc_html__( 'You do not have permission to trash posts!', 'user-registration' ) );
     
    270272                        $this->bulk_trash( $post_ids );
    271273                    }
     274
    272275                    break;
    273276
    274277                case 'bulk_untrash':
    275278                case 'untrash':
     279                    check_admin_referer( 'bulk-' . $this->_args['plural'] );
     280
    276281                    if ( ! current_user_can( 'edit_posts' ) ) {
    277282                        wp_die( esc_html__( 'You do not have permission to untrash posts!', 'user-registration' ) );
     
    280285                        $this->bulk_untrash( $post_ids );
    281286                    }
     287
    282288                    break;
    283289
    284290                case 'bulk_delete':
    285291                case 'delete':
     292                    check_admin_referer( 'bulk-' . $this->_args['plural'] );
     293
    286294                    if ( ! current_user_can( 'delete_posts' ) ) {
    287295                        wp_die( esc_html__( 'You do not have permission to delete posts!', 'user-registration' ) );
  • user-registration/trunk/languages/user-registration.pot

    r3413561 r3435099  
    1 # Copyright (C) 2025 WPEverest
     1# Copyright (C) 2026 WPEverest
    22# This file is distributed under the same license as the User Registration & Membership plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: User Registration & Membership 4.4.8\n"
     5"Project-Id-Version: User Registration & Membership 4.4.9\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/user-registration\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-12-07T15:35:51+00:00\n"
     12"POT-Creation-Date: 2026-01-08T12:06:21+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
     
    481481
    482482#: includes/abstracts/abstract-ur-list-table.php:258
    483 #: includes/abstracts/abstract-ur-list-table.php:298
     483#: includes/abstracts/abstract-ur-list-table.php:306
    484484#: includes/admin/class-ur-admin-export-users.php:51
    485485#: includes/admin/class-ur-admin-import-export-forms.php:51
     
    493493msgstr ""
    494494
    495 #: includes/abstracts/abstract-ur-list-table.php:267
     495#: includes/abstracts/abstract-ur-list-table.php:269
    496496msgid "You do not have permission to trash posts!"
    497497msgstr ""
    498498
    499 #: includes/abstracts/abstract-ur-list-table.php:277
     499#: includes/abstracts/abstract-ur-list-table.php:282
    500500msgid "You do not have permission to untrash posts!"
    501501msgstr ""
    502502
    503 #: includes/abstracts/abstract-ur-list-table.php:287
    504 #: includes/abstracts/abstract-ur-list-table.php:296
     503#: includes/abstracts/abstract-ur-list-table.php:295
     504#: includes/abstracts/abstract-ur-list-table.php:304
    505505msgid "You do not have permission to delete posts!"
    506506msgstr ""
    507507
    508 #: includes/abstracts/abstract-ur-list-table.php:340
     508#: includes/abstracts/abstract-ur-list-table.php:348
    509509msgid "Copy of "
    510510msgstr ""
    511511
    512 #: includes/abstracts/abstract-ur-list-table.php:487
     512#: includes/abstracts/abstract-ur-list-table.php:495
    513513msgid "Empty trash"
    514514msgstr ""
    515515
    516 #: includes/abstracts/abstract-ur-list-table.php:564
     516#: includes/abstracts/abstract-ur-list-table.php:572
    517517msgid "Y/m/d g:i:s A"
    518518msgstr ""
    519519
    520520#. translators: %s - Human readable time
    521 #: includes/abstracts/abstract-ur-list-table.php:577
     521#: includes/abstracts/abstract-ur-list-table.php:585
    522522msgid "%s ago"
    523523msgstr ""
    524524
    525 #: includes/abstracts/abstract-ur-list-table.php:581
     525#: includes/abstracts/abstract-ur-list-table.php:589
    526526msgid "Y/m/d"
    527527msgstr ""
    528528
    529 #: includes/abstracts/abstract-ur-list-table.php:664
     529#: includes/abstracts/abstract-ur-list-table.php:672
    530530#: includes/admin/settings/class-ur-users-list-table.php:670
    531531#: includes/admin/views/html-admin-page-form-templates.php:47
     
    1182811828msgstr ""
    1182911829
    11830 #: user-registration.php:643
     11830#: user-registration.php:659
    1183111831msgid "As <strong>User Registration & Membership Pro</strong> is active, <strong>User Registration Free</strong> is now not needed."
    1183211832msgstr ""
  • user-registration/trunk/readme.txt

    r3413561 r3435099  
    55Requires PHP: 7.2
    66Tested up to: 6.9
    7 Stable tag: 4.4.8
     7Stable tag: 4.4.9
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    258258
    259259== Changelog ==
     260
     261= 4.4.9    - 08/01/2026 =
     262* Security - Fixed XSS vulnerability for delete users.
    260263
    261264= 4.4.8    - 07/12/2025 =
  • user-registration/trunk/user-registration.php

    r3413561 r3435099  
    44 * Plugin URI: https://wpuserregistration.com/
    55 * Description: The most flexible User Registration and Membership plugin for WordPress.
    6  * Version: 4.4.8
     6 * Version: 4.4.9
    77 * Author: WPEverest
    88 * Author URI: https://wpuserregistration.com
     
    3636         * @var string
    3737         */
    38         public $version = '4.4.8';
     38        public $version = '4.4.9';
    3939
    4040        /**
     
    113113            $this->init_hooks();
    114114            add_action( 'plugins_loaded', array( $this, 'objects' ), 1 );
    115             add_action( 'in_plugin_update_message-' . UR_PLUGIN_BASENAME, array( __CLASS__, 'in_plugin_update_message' ) );
     115            add_action( 'in_plugin_update_message-' . UR_PLUGIN_BASENAME, array( __CLASS__, 'in_plugin_update_message' ), 10, 2 );
    116116
    117117            do_action( 'user_registration_loaded' );
     
    481481         * @param array $args Plugin args.
    482482         */
    483         public static function in_plugin_update_message( $args ) {
    484             $transient_name = 'ur_upgrade_notice_' . $args['Version'];
     483        public static function in_plugin_update_message( $plugin_data, $response ) {
     484            if ( empty( $response ) || empty( $response->new_version ) ) {
     485                return;
     486            }
     487            $new_version = (string) $response->new_version;
     488
     489            $transient_name = 'ur_upgrade_notice_' . $new_version;
    485490            $upgrade_notice = get_transient( $transient_name );
    486491
    487492            if ( false === $upgrade_notice ) {
    488                 $response = wp_safe_remote_get( 'https://plugins.svn.wordpress.org/user-registration/trunk/readme.txt' );
    489 
    490                 if ( ! is_wp_error( $response ) && ! empty( $response['body'] ) ) {
    491                     $upgrade_notice = self::parse_update_notice( $response['body'], $args['new_version'] );
    492                     set_transient( $transient_name, $upgrade_notice, DAY_IN_SECONDS );
     493                $http_response = wp_safe_remote_get( 'https://plugins.svn.wordpress.org/user-registration/trunk/readme.txt' );
     494
     495                if ( ! is_wp_error( $http_response ) && ! empty( $http_response['body'] ) ) {
     496                    $upgrade_notice = self::parse_update_notice( $http_response['body'], $new_version );
     497                    set_transient( $transient_name, $upgrade_notice, 3 * DAY_IN_SECONDS );
    493498                }
    494499            }
     
    504509         */
    505510        private static function parse_update_notice( $content, $new_version ) {
    506             // Output Upgrade Notice.
    507             $matches        = null;
    508             $regexp         = '~==\s*Upgrade Notice\s*==\s*=\s*(.*)\s*=(.*)(=\s*' . preg_quote( UR_VERSION ) . '\s*=|$)~Uis';
    509511            $upgrade_notice = '';
    510512
    511             if ( preg_match( $regexp, $content, $matches ) ) {
    512 
    513                 $version = trim( $matches[1] );
    514                 $notices = (array) preg_split( '~[\r\n]+~', trim( $matches[2] ) );
    515 
    516                 // Check the latest stable version and ignore trunk.
    517                 if ( $version === $new_version && version_compare( UR_VERSION, $version, '<' ) ) {
     513            // Match all version blocks under "== Upgrade Notice =="
     514            $blocks_regex = '~=\s*([\d\.]+)\s*=(.*?)(?==\s*[\d\.]+\s*=|$)~s';
     515            if ( preg_match_all( $blocks_regex, $content, $matches, PREG_SET_ORDER ) ) {
     516                foreach ( $matches as $match ) {
     517                    $version_line = trim( $match[1] );
     518                    $block_text   = trim( $match[2] );
     519
     520                    // Only process the block if it matches $new_version
     521                    if ( $version_line !== $new_version ) {
     522                        continue;
     523                    }
     524
     525                    $notices = (array) preg_split( '~[\r\n]+~', $block_text );
    518526
    519527                    $upgrade_notice .= '<div class="ur_plugin_upgrade_notice">';
     
    521529
    522530                    foreach ( $notices as $line ) {
    523 
    524                         $line = trim( $line ); // Remove extra whitespace
    525 
     531                        $line = trim( $line );
    526532                        if ( empty( $line ) ) {
    527                             continue; // Skip empty lines
     533                            continue;
    528534                        }
    529535
    530                         $line = preg_replace( '~\[([^\]]*)\]\(([^\)]*)\)~', '<a href="$2">$1</a>', $line );
    531 
    532                         $line = preg_replace( '~^###\s*(.*)~', '<p class="upgrade-title" style="font-size: 14px;font-weight: 600" >$1</p>', $line );
    533 
    534                         if ( ! preg_match( '~^<h3>|<p>|<a |<ul>|<ol>|<li>~', $line ) ) {
    535                             $line = '<p style="font-size: 12px;>' . $line . '</p>';
     536                        $line = preg_replace(
     537                            '~\[\s*([^\]]+)\s*\]\s*\(\s*([^\)]+)\s*\)~',
     538                            '<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>',
     539                            $line
     540                        );
     541
     542                        // Convert headings
     543                        if ( preg_match( '~^###\s*(.*)~', $line, $heading ) ) {
     544                            $line = '<p class="upgrade-title" style="font-size:13px;font-weight:600;">' . $heading[1] . '</p>';
     545                        } elseif ( preg_match( '~^##\s*(.*)~', $line, $heading ) ) {
     546                            $line = '<p class="upgrade-heading" style="font-size:14px;font-weight:600;">' . $heading[1] . '</p>';
     547                        } else {
     548                            $line = '<p style="font-size:12px;">' . $line . '</p>';
    536549                        }
    537550
    538                         $upgrade_notice .= wp_kses_post( trim( $line ) );
     551                        $upgrade_notice .= wp_kses_post( $line );
    539552                    }
    540553
    541                     $upgrade_notice .= '</div> ';
    542                     $upgrade_notice .= '</div> ';
     554                    $upgrade_notice .= '</div>';
     555                    $upgrade_notice .= '</div>';
     556
     557                    break;
    543558                }
    544559            }
     560
    545561            return wp_kses_post( $upgrade_notice );
    546562        }
Note: See TracChangeset for help on using the changeset viewer.