Plugin Directory

Changeset 2732443


Ignore:
Timestamp:
05/27/2022 08:55:05 AM (4 years ago)
Author:
cneumann
Message:

Realease 1.3.5

Location:
multiple-roles
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • multiple-roles/tags/1.3.5/multiple-roles.php

    r2730803 r2732443  
    33Plugin Name: Multiple Roles
    44Description: Allow users to have multiple roles on one site.
    5 Version: 1.3.4
    6 Author: Florian TIAR
    7 Author URI: http://tiar-florian.fr
     5Version: 1.3.5
     6Author: Christian Neumann
     7Author URI: https://utopicode.de
    88Plugin URI: https://wordpress.org/plugins/multiple-roles/
    9 Github URI: https://github.com/Mahjouba91/multiple-roles
     9Github URI: https://github.com/chrneumann/multiple-roles
    1010Text Domain: multiple-roles
    1111*/
     
    4747add_filter( 'manage_users_custom_column', array( $column, 'output_column_content' ), 10, 3 );
    4848
    49 add_action( 'init', 'load_translation' );
    50 function load_translation() {
     49add_action( 'init', 'mdmr_load_translation' );
     50function mdmr_load_translation() {
    5151    load_plugin_textdomain( 'multiple-roles', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    5252}
  • multiple-roles/tags/1.3.5/readme.txt

    r2730803 r2732443  
    33Tags: multiple roles, multiple roles per user, user roles, edit user roles, edit roles, more than one role, more than one role per user, more than one role for each user, many roles per user, unlimited roles
    44Requires at least: 3.1
    5 Tested up to: 5.7.2
    6 Stable tag: 1.3.4
     5Tested up to: 6.0
     6Stable tag: 1.3.5
    77Requires PHP: 5.4
    88Donate link: https://www.paypal.me/FlorianTIAR/5
     
    6565== Changelog ==
    6666
     67= 1.3.5 =
     68* 27th may 2022
     69* Test the plugin against WordPress 6.0
     70* Fix open issues with sanitizing text
     71
    6772= 1.3.4 =
    6873* 25th may 2022
  • multiple-roles/tags/1.3.5/views/column.html.php

    r2334065 r2732443  
    66 */
    77?><div class="md-multiple-roles">
    8     <?php if ( ! empty( $roles ) ) :
    9         foreach( $roles as $name => $label ) :
    10             $roles[$name] = '<a href="users.php?role=' . esc_attr( $name ) . '">' . esc_html( translate_user_role( $label ) ) . '</a>';
    11         endforeach;
    12         echo implode( ', ', $roles );
    13     else : ?>
     8    <?php if ( ! empty( $roles ) ) : ?>
     9        <?php $it = new CachingIterator( new ArrayIterator( $roles ) ); ?>
     10        <?php foreach( $it as $name => $label ) : ?>
     11            <a href="users.php?role=<?php echo esc_attr( $name ); ?>"><?php echo esc_html( translate_user_role( $label ) ) ?></a><?php if ( $it->hasNext() ) : ?>,<?php endif; ?>
     12        <?php endforeach; ?>
     13    <?php else : ?>
    1414        <span class="md-multiple-roles-no-role"><?php _e( 'None', 'multiple-roles' ); ?></span>
    1515    <?php endif; ?>
  • multiple-roles/trunk/multiple-roles.php

    r2730803 r2732443  
    33Plugin Name: Multiple Roles
    44Description: Allow users to have multiple roles on one site.
    5 Version: 1.3.4
    6 Author: Florian TIAR
    7 Author URI: http://tiar-florian.fr
     5Version: 1.3.5
     6Author: Christian Neumann
     7Author URI: https://utopicode.de
    88Plugin URI: https://wordpress.org/plugins/multiple-roles/
    9 Github URI: https://github.com/Mahjouba91/multiple-roles
     9Github URI: https://github.com/chrneumann/multiple-roles
    1010Text Domain: multiple-roles
    1111*/
     
    4747add_filter( 'manage_users_custom_column', array( $column, 'output_column_content' ), 10, 3 );
    4848
    49 add_action( 'init', 'load_translation' );
    50 function load_translation() {
     49add_action( 'init', 'mdmr_load_translation' );
     50function mdmr_load_translation() {
    5151    load_plugin_textdomain( 'multiple-roles', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    5252}
  • multiple-roles/trunk/readme.txt

    r2730803 r2732443  
    33Tags: multiple roles, multiple roles per user, user roles, edit user roles, edit roles, more than one role, more than one role per user, more than one role for each user, many roles per user, unlimited roles
    44Requires at least: 3.1
    5 Tested up to: 5.7.2
    6 Stable tag: 1.3.4
     5Tested up to: 6.0
     6Stable tag: 1.3.5
    77Requires PHP: 5.4
    88Donate link: https://www.paypal.me/FlorianTIAR/5
     
    6565== Changelog ==
    6666
     67= 1.3.5 =
     68* 27th may 2022
     69* Test the plugin against WordPress 6.0
     70* Fix open issues with sanitizing text
     71
    6772= 1.3.4 =
    6873* 25th may 2022
  • multiple-roles/trunk/views/column.html.php

    r2334065 r2732443  
    66 */
    77?><div class="md-multiple-roles">
    8     <?php if ( ! empty( $roles ) ) :
    9         foreach( $roles as $name => $label ) :
    10             $roles[$name] = '<a href="users.php?role=' . esc_attr( $name ) . '">' . esc_html( translate_user_role( $label ) ) . '</a>';
    11         endforeach;
    12         echo implode( ', ', $roles );
    13     else : ?>
     8    <?php if ( ! empty( $roles ) ) : ?>
     9        <?php $it = new CachingIterator( new ArrayIterator( $roles ) ); ?>
     10        <?php foreach( $it as $name => $label ) : ?>
     11            <a href="users.php?role=<?php echo esc_attr( $name ); ?>"><?php echo esc_html( translate_user_role( $label ) ) ?></a><?php if ( $it->hasNext() ) : ?>,<?php endif; ?>
     12        <?php endforeach; ?>
     13    <?php else : ?>
    1414        <span class="md-multiple-roles-no-role"><?php _e( 'None', 'multiple-roles' ); ?></span>
    1515    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.