Plugin Directory

Changeset 3362334


Ignore:
Timestamp:
09/16/2025 08:44:26 AM (7 months ago)
Author:
podpirate
Message:

Release 1.5.21

Location:
wp-access-areas
Files:
36 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-access-areas/tags/1.5.21/.wp-release-info.json

    r3233303 r3362334  
    22  "id": "https://github.com/mcguffin/wp-access-areas/raw/master/.wp-release-info.json",
    33  "slug": "wp-access-areas",
    4   "version": "1.5.20",
     4  "version": "1.5.21",
    55  "url": "http://wordpress.org/plugins/wp-access-areas/",
    6   "package": "https://github.com/mcguffin/wp-access-areas/releases/download/1.5.20/wp-access-areas.zip",
     6  "package": "https://github.com/mcguffin/wp-access-areas/releases/download/1.5.21/wp-access-areas.zip",
    77  "tested": "6.0",
    88  "requires_php": "5.6"
  • wp-access-areas/tags/1.5.21/README.txt

    r3233303 r3362334  
    1 === WordPress Access Areas ===
     1=== Access Areas for WordPress ===
    22Contributors: podpirate
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WF4Z3HU93XYJA
     
    66Requires PHP: 5.6
    77Tested up to: 6.0
    8 Stable tag: 1.5.20
     8Stable tag: 1.5.21
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9393
    9494== Changelog ==
     95
     96= 1.5.21 =
     97 - Rename Plugin from "WordPress Access Areas" to "Access Areas for WordPress".
    9598
    9699= 1.5.20 =
  • wp-access-areas/tags/1.5.21/inc/class-accessareas_list_table.php

    r3233303 r3362334  
    130130
    131131            if ( isset( $_REQUEST['orderby'] ) ) {
    132                 $orderby = wp_unslash( $_REQUEST['orderby'] );
     132                // santized later
     133                $orderby = wp_unslash( $_REQUEST['orderby'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    133134            }
    134135
    135136            if ( isset( $_REQUEST['order'] ) ) {
    136                 $order = wp_unslash( $_REQUEST['order'] );
     137                // santized later
     138                $order = wp_unslash( $_REQUEST['order'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    137139            }
    138 
     140            // sanitized here
    139141            $order_sql = sanitize_sql_orderby( "{$orderby} {$order}" );
    140142
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_accessarea.php

    r2518251 r3362334  
    3131
    3232            $blog_id_in = array();
    33             if ( ! is_multisite() || is_accessareas_active_for_network() ) {
     33            if ( ! is_multisite() || wpaa_is_active_for_network() ) {
    3434                $blog_id_in[0] = '%d';
    3535            }
     
    5555            if ( count( $blog_id_in ) ) {
    5656                $args = array_keys( $blog_id_in );
    57                 $query = $wpdb->prepare( $query, ...$args );
     57                $query = $wpdb->prepare( $query, ...$args ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    5858            }
    5959
     
    7070                $query .= " ORDER BY $sql_orderby";
    7171            }
    72             $query = $wpdb->prepare( $query, $blog_id );
     72            $query = $wpdb->prepare( $query, $blog_id ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    7373            return self::_get_cached_result( $query );
    7474        }
     
    131131                    '%' . $wpdb->esc_like( WPUND_USERLABEL_PREFIX ) . '%'
    132132                );
    133                 $usermeta = $wpdb->get_results( $query );
     133                $usermeta = $wpdb->get_results( $query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    134134
    135135                foreach ( $usermeta as $meta ) {
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_caps.php

    r3233303 r3362334  
    1717            if ( is_admin() ) {
    1818                add_action( 'admin_menu', array( __CLASS__, 'user_menu' ) );
    19                 if ( is_accessareas_active_for_network() ) {
     19                if ( wpaa_is_active_for_network() ) {
    2020                    add_action( 'network_admin_menu', array( __CLASS__, 'user_menu' ) );
    2121                }
     
    3737            $action = -1;
    3838            if ( isset( $_REQUEST['action'] ) && intval( $_REQUEST['action'] ) !== -1 ) {
    39                 $action = wp_unslash( $_REQUEST['action'] );
     39                $action = sanitize_key(wp_unslash( $_REQUEST['action'] ));
    4040            }
    4141            if ( isset( $_REQUEST['action2'] ) && intval( $_REQUEST['action2'] ) !== -1 ) {
    42                 $action = wp_unslash( $_REQUEST['action2'] );
    43             }
    44             $action = sanitize_key( $action );
     42                $action = sanitize_key(wp_unslash( $_REQUEST['action2'] ));
     43            }
     44            // $action = sanitize_key( $action );
    4545            return $action;
    4646        }
     
    252252                                </th>
    253253                                <td>
    254                                     <input class="regular-text" maxlength="64" type="text" name="cap_title" value="<?php esc_attr_e( $cap_title ); ?>" id="cap_title" placeholder="<?php esc_attr_e( 'New Access Area', 'wp-access-areas' ); ?>" autocomplete="off" />
     254                                    <input class="regular-text" maxlength="64" type="text" name="cap_title" value="<?php echo esc_attr( $cap_title ); ?>" id="cap_title" placeholder="<?php esc_attr_e( 'New Access Area', 'wp-access-areas' ); ?>" autocomplete="off" />
    255255                                </td>
    256256                            </tr>
     
    292292                    }
    293293                    /* translators: %d number of deleted items */
    294                     $message = sprintf( _n( 'Access Area deleted.', '%d Access Areas deleted.', $deleted, 'wp-access-areas' ), $deleted );
     294                    $message = sprintf( _n( 'Access Area deleted.', '%d Access Areas deleted.', $deleted, 'wp-access-areas' ), $deleted ); // phpcs:ignore WordPress.WP.I18n.MissingSingularPlaceholder
    295295                    break;
    296296                case 4: // exists
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_core.php

    r2236440 r3362334  
    88
    99// ----------------------------------------
    10 // This class initializes the WordPress Access Areas plugin.
     10// This class initializes the Access Areas for WordPress plugin.
    1111// (As of version 1.0 it only loads an apropriate plugin textdomain for translation readyness.)
    1212// ----------------------------------------
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_editpost.php

    r2720192 r3362334  
    353353
    354354            ?>
    355             <div class="wpaa-select-behaviour<?php esc_attr_e( $is_custom ? ' custom' : '' ); ?>">
     355            <div class="wpaa-select-behaviour<?php echo esc_attr( $is_custom ? ' custom' : '' ); ?>">
    356356                <div class="misc-pub-section">
    357357                    <label for="wpaa_enable_custom_behaviour">
     
    576576                            ?>
    577577                            <div class="<?php echo $val == 'exist' ? 'wpaa-default-permission ' : ''; ?> wpaa-permission dashicons-before dashicons-visibility" title="<?php esc_attr_e( 'Who can read', 'wp-access-areas' ); ?>">
    578                                 <?php esc_html_e( $names[ $val ] ); ?>
     578                                <?php echo esc_html( $names[ $val ] ); ?>
    579579                            </div>
    580580                            <?php
     
    585585                            ?>
    586586                            <div class="<?php echo $val == 'exist' ? 'wpaa-default-permission ' : ''; ?> wpaa-permission dashicons-before dashicons-admin-comments" title="<?php esc_attr_e( 'Who can comment', 'wp-access-areas' ); ?>">
    587                                 <?php esc_html_e( $names[ $val ] ); ?>
     587                                <?php echo esc_html( $names[ $val ] ); ?>
    588588                            </div>
    589589                            <?php
     
    594594                            ?>
    595595                            <div class="<?php echo $val == 'exist' ? 'wpaa-default-permission ' : ''; ?> wpaa-permission dashicons-before dashicons-edit" title="<?php esc_attr_e( 'Who can read', 'wp-access-areas' ); ?>">
    596                                 <?php esc_html_e( $names[ $val ] ); ?>
     596                                <?php echo esc_html( $names[ $val ] ); ?>
    597597                            </div>
    598598                            <?php
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_install.php

    r2518251 r3362334  
    103103            );
    104104            foreach ( $cols as $idx => $col ) {
    105                 $c = $wpdb->get_results( "SHOW COLUMNS FROM $wpdb->posts LIKE '$col'" );
     105                $c = $wpdb->get_results( "SHOW COLUMNS FROM $wpdb->posts LIKE '$col'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    106106                if ( empty( $c ) ) {
    107                     $wpdb->query( "ALTER TABLE $wpdb->posts ADD COLUMN $col varchar(128) NOT NULL DEFAULT 'exist' AFTER `post_status`;" );
    108                 }
    109 
    110                 $i = $wpdb->query( "SHOW INDEX FROM $wpdb->posts WHERE Key_name = '$idx'" );
     107                    $wpdb->query( "ALTER TABLE $wpdb->posts ADD COLUMN $col varchar(128) NOT NULL DEFAULT 'exist' AFTER `post_status`;" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     108                }
     109
     110                $i = $wpdb->query( "SHOW INDEX FROM $wpdb->posts WHERE Key_name = '$idx'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    111111                if ( empty( $i ) ) {
    112                     $wpdb->query( "ALTER TABLE $wpdb->posts ADD INDEX `$idx` (`$col`);" );
     112                    $wpdb->query( "ALTER TABLE $wpdb->posts ADD INDEX `$idx` (`$col`);" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    113113                }
    114114            }
     
    123123            );
    124124            foreach ( $cols as $idx => $col ) {
    125                 $c = $wpdb->get_results( "SHOW COLUMNS FROM $wpdb->posts LIKE '$col'" );
     125                $c = $wpdb->get_results( "SHOW COLUMNS FROM $wpdb->posts LIKE '$col'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    126126                if ( ! empty( $c ) ) {
    127                     $wpdb->query( "ALTER TABLE $wpdb->posts DROP COLUMN $col;" );
    128                 }
    129 
    130                 $i = $wpdb->query( "SHOW INDEX FROM $wpdb->posts WHERE Key_name = '$idx'" );
     127                    $wpdb->query( "ALTER TABLE $wpdb->posts DROP COLUMN $col;" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     128                }
     129
     130                $i = $wpdb->query( "SHOW INDEX FROM $wpdb->posts WHERE Key_name = '$idx'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    131131                if ( ! empty( $i ) ) {
    132                     $wpdb->query( "ALTER TABLE $wpdb->posts DROP INDEX ('$idx');" );
     132                    $wpdb->query( "ALTER TABLE $wpdb->posts DROP INDEX ('$idx');" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    133133                }
    134134            }
     
    211211
    212212            $usermeta = $wpdb->get_results( $wpdb->prepare(
    213                 "SELECT * FROM $wpdb->usermeta WHERE meta_key LIKE '{$wpdb->base_prefix}%capabilities' AND meta_value LIKE %s",
     213                // TODO test escaping
     214                "SELECT * FROM $wpdb->usermeta WHERE meta_key LIKE %s AND meta_value LIKE %s", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     215                $wpdb->esc_like( WPUND_USERLABEL_PREFIX ) . '%' . $wpdb->esc_like( 'capabilities' ),
    214216                '%' . $wpdb->esc_like( WPUND_USERLABEL_PREFIX ) . '%'
    215217            ) );
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_posts.php

    r2239939 r3362334  
    169169
    170170            // taken from wp_count_comments
    171             $count = $wpdb->get_results( "SELECT comment_approved, COUNT( * ) AS num_comments FROM {$wpdb->comments} {$join} {$where} GROUP BY comment_approved", ARRAY_A );
     171            $count = $wpdb->get_results( "SELECT comment_approved, COUNT( * ) AS num_comments FROM {$wpdb->comments} {$join} {$where} GROUP BY comment_approved", ARRAY_A ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    172172
    173173            $total    = 0;
     
    281281        public static function skip_undisclosed_items( $items ) {
    282282            // everything's fine - return.
    283             if ( current_user_can( 'administrator' ) ) {
     283            if ( current_user_can( 'administrator' ) ) { // phpcs:ignore WordPress.WP.Capabilities.RoleFound
    284284                return $items;
    285285            }
     
    322322            global $wpdb, $wp_query;
    323323            // disable filtering: on queries for single posts/pages and for single blog administrators
    324             if ( ( isset( $wp_query ) && is_singular() && preg_match( "/{$wpdb->posts}.(post_name|ID)\s?=/", $where ) ) || ( ! is_multisite() && current_user_can( 'administrator' ) ) ) {
     324            if ( ( isset( $wp_query ) && is_singular() && preg_match( "/{$wpdb->posts}.(post_name|ID)\s?=/", $where ) ) || ( ! is_multisite() && current_user_can( 'administrator' ) ) ) {  // phpcs:ignore WordPress.WP.Capabilities.RoleFound
    325325                return $where;
    326326            }
     
    359359
    360360            $add_where = $wpdb->prepare(
    361                 " {$table_name}post_view_cap IN (" . implode( ',', $fmt ) . ")",
     361                " {$table_name}post_view_cap IN (" . implode( ',', $fmt ) . ")", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    362362                ...$caps
    363363            );
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_settings.php

    r3233303 r3362334  
    3838            add_action( 'admin_notices', array( __CLASS__, 'selftest' ) );
    3939
    40             if ( isset( $_GET['action'] ) && wp_unslash( $_GET['action'] ) === 'wpaa-selfrepair' ) {
     40            if ( isset( $_GET['action'] ) && wp_unslash( $_GET['action'] ) === 'wpaa-selfrepair' ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    4141                add_action( 'admin_init', array( __CLASS__, 'selfrepair' ) );
    4242            }
     
    239239            foreach ( array( 'thead', 'tfoot' ) as $tag ) {
    240240                ?>
    241                 <<?php echo $tag; ?>>
     241                <<?php echo $tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
    242242                    <tr>
    243243                        <th class="manage-column">
     
    257257                        </th>
    258258                    </tr>
    259                 </<?php echo $tag; ?>>
     259                </<?php echo $tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
    260260                <?php
    261261            }
     
    278278                    <tr class="post-select <?php echo $alternate ? 'alternate' : ''; ?>">
    279279                        <th>
    280                             <?php esc_html_e( $post_type_object->labels->name ); ?>
     280                            <?php echo esc_html( $post_type_object->labels->name ); ?>
    281281                        </th>
    282282                        <td>
     
    352352                    ?>
    353353                                    <th class="manage-column">
    354                         <?php esc_html_e( $label ); ?>
     354                        <?php echo esc_html( $label ); ?>
    355355                                        <br />
    356                                         <code><small><?php esc_html_e( $cap ); ?></small></code>
     356                                        <code><small><?php echo esc_html( $cap ); ?></small></code>
    357357                                    </th>
    358358                        <?php
     
    376376                                <tr class="role-select <?php echo $alternate ? 'alternate' : ''; ?>">
    377377                                    <th>
    378                                         <?php
    379                                         esc_html_e( translate_user_role( $role_details['name'] ) );
    380                                         ?>
     378                                        <?php echo esc_html( translate_user_role( $role_details['name'] ) ); ?>
    381379                                    </th>
    382380                                <?php
     
    394392                                            } else {
    395393                                                ?>
    396                                                 <button name="grant_cap[<?php esc_attr_e( $role_slug ); ?>]" value="<?php esc_attr_e( $cap ); ?>" type="submit" class="button-primary" />
     394                                                <button name="grant_cap[<?php echo esc_attr( $role_slug ); ?>]" value="<?php echo esc_attr( $cap ); ?>" type="submit" class="button-primary" />
    397395                                                    <?php esc_html_e( 'Allow', 'wp-access-areas' ); ?>
    398396                                                </button>
     
    491489                foreach ( self::get_post_stati() as $post_status => $status_obj ) {
    492490                    ?>
    493                     <option value="<?php esc_attr_e( $post_status ); ?>" <?php selected( $default_post_status, $post_status, true ); ?>>
    494                         <?php esc_html_e( $status_obj->label ); ?>
     491                    <option value="<?php echo esc_attr( $post_status ); ?>" <?php selected( $default_post_status, $post_status, true ); ?>>
     492                        <?php echo esc_html( $status_obj->label ); ?>
    495493                    </option>
    496494                    <?php
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_template.php

    r3233303 r3362334  
    4949                    }
    5050                    ?>
    51                     <option value="<?php esc_attr_e( $role ); ?>" <?php selected( $selected_cap, $role ); ?>>
     51                    <option value="<?php echo esc_attr( $role ); ?>" <?php selected( $selected_cap, $role ); ?>>
    5252                        <?php echo esc_html( $rolename ); ?>
    5353                    </option>
     
    6868                        <option value="<?php echo esc_attr( $group_cap ); ?>" <?php selected( $selected_cap, $group_cap ); ?>>
    6969                            <?php
    70                                 esc_html_e( $group['title'], 'wp-access-areas' );
     70                                echo esc_html( $group['title'] );
    7171                                echo $group['global'] ? ' ' . esc_html__( '(Network)', 'wp-access-areas' ) : '';
    7272                            ?>
     
    137137            ?>
    138138            <label for="wpaa-view-post-behavior-<?php echo sanitize_key( $value ); ?>">
    139                 <input name="<?php esc_attr_e( $fieldname ); ?>" <?php checked( $value, $post_behavior ); ?> class="wpaa-post-behavior" id="wpaa-view-post-behavior-<?php echo sanitize_key( $value ); ?>" value="<?php esc_attr_e( $value ); ?>" type="radio" />
    140                 <?php esc_html_e( $label ); ?>
     139                <input name="<?php echo esc_attr( $fieldname ); ?>" <?php checked( $value, $post_behavior ); ?> class="wpaa-post-behavior" id="wpaa-view-post-behavior-<?php echo sanitize_key( $value ); ?>" value="<?php echo esc_attr( $value ); ?>" type="radio" />
     140                <?php echo esc_html( $label ); ?>
    141141                <br />
    142142            </label>
  • wp-access-areas/tags/1.5.21/inc/class-wpaa_users.php

    r3233303 r3362334  
    1616            if ( is_admin() ) {
    1717                add_action( 'admin_init', array( __CLASS__, 'admin_init' ) );
    18                 if ( is_accessareas_active_for_network() ) {
     18                if ( wpaa_is_active_for_network() ) {
    1919                    add_filter( 'wpmu_users_columns', array( __CLASS__, 'add_userlabels_column' ) );
    2020                }
     
    332332        public static function personal_options( $profileuser ) {
    333333            // IS_PROFILE_PAGE : self or other
    334             if ( ! current_user_can( 'promote_users' ) || ( is_network_admin() && ! is_accessareas_active_for_network() ) ) {
     334            if ( ! current_user_can( 'promote_users' ) || ( is_network_admin() && ! wpaa_is_active_for_network() ) ) {
    335335                return;
    336336            }
     
    353353                );
    354354            }
    355             if ( ( is_network_admin() || is_super_admin() ) && is_accessareas_active_for_network() ) {
     355            if ( ( is_network_admin() || is_super_admin() ) && wpaa_is_active_for_network() ) {
    356356                $labelrows[ __( 'Grant Network-Wide Access', 'wp-access-areas' ) ] = array(
    357357                    'network'      => true,
     
    428428                    '<label for="%s">%s</label>',
    429429                    esc_attr( $id ),
    430                     esc_html__( $label->cap_title )
     430                    esc_html( $label->cap_title )
    431431                );
    432432
     
    442442                <input type="hidden" name="blog_id" value="<?php echo intval( $blog_id ); ?>" />
    443443                <input class="cap-add" type="text" name="cap_title" placeholder="<?php esc_attr_e( 'Add New', 'wp-access-areas' ); ?>" />
    444                 <button href="#" class="cap-add-submit button" disabled data-nonce="<?php esc_attr_e( wp_create_nonce( 'userlabel-new' ) ); ?>">
     444                <button href="#" class="cap-add-submit button" disabled data-nonce="<?php echo esc_attr( wp_create_nonce( 'userlabel-new' ) ); ?>">
    445445                    <span class=" dashicons dashicons-plus"></span>
    446446                    <span class="screen-reader-text">
     
    465465            $ret  = '';
    466466            $ret .= self::_listtable_label_select( WPAA_AccessArea::get_blog_userlabels(), $current_label );
    467             if ( is_accessareas_active_for_network() ) {
     467            if ( wpaa_is_active_for_network() ) {
    468468                $ret .= self::_listtable_label_select( WPAA_AccessArea::get_network_userlabels(), $current_label, true );
    469469            }
     
    492492
    493493        private static function _label_select_all( $name, $first_element_label = false, $echo = false ) {
    494             $network = is_accessareas_active_for_network();
     494            $network = wpaa_is_active_for_network();
    495495            $ret     = '';
    496496            $ret    .= '<select name="' . $name . '">';
  • wp-access-areas/tags/1.5.21/inc/wpaa_roles.php

    r2232646 r3362334  
    9595
    9696    // always true for administrators on local caps
    97     if ( wpaa_is_local_cap( $cap ) && current_user_can( 'administrator' ) || is_super_admin() ) {
     97    if ( wpaa_is_local_cap( $cap ) && current_user_can( 'administrator' ) || is_super_admin() ) { // phpcs:ignore WordPress.WP.Capabilities.RoleFound
    9898        $can = true;
    9999    } else {
  • wp-access-areas/tags/1.5.21/languages/wp-access-areas-it_IT.po

    r1408124 r3362334  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WordPress Access Areas v1.2.1\n"
     3"Project-Id-Version: Access Areas for WordPress v1.2.1\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2016-04-30 11:31+0100\n"
  • wp-access-areas/tags/1.5.21/languages/wp-access-areas-pl_PL.po

    r1408124 r3362334  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WordPress Access Areas v1.2.7\n"
     3"Project-Id-Version: Access Areas for WordPress v1.2.7\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2016-04-30 11:31+0100\n"
     
    504504
    505505# @ wp-access-areas
    506 #~ msgid "WordPress Access Areas"
     506#~ msgid "Access Areas for WordPress"
    507507#~ msgstr "Obszary dostępu Wordpress"
    508508
  • wp-access-areas/tags/1.5.21/languages/wp-access-areas-sv_SE.po

    r1408124 r3362334  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WordPress Access Areas v1.2.5\n"
     3"Project-Id-Version: Access Areas for WordPress v1.2.5\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2016-04-30 11:32+0100\n"
     
    502502
    503503# @ wp-access-areas
    504 #~ msgid "WordPress Access Areas"
     504#~ msgid "Access Areas for WordPress"
    505505#~ msgstr "Användarzoner"
    506506
  • wp-access-areas/tags/1.5.21/languages/wp-access-areas.pot

    r3233303 r3362334  
    11# Copyright (C) 2025 Jörn Lund
    2 # This file is distributed under the same license as the WordPress Access Areas plugin.
     2# This file is distributed under the same license as the Access Areas for WordPress plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WordPress Access Areas 1.5.20\n"
     5"Project-Id-Version: Access Areas for WordPress 1.5.21\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-access-areas\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-02-02T09:25:18+00:00\n"
     12"POT-Creation-Date: 2025-09-16T10:43:43+02:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.12.0\n"
    1515"X-Domain: wp-access-areas\n"
    1616
    1717#. Plugin Name of the plugin
    1818#: wp-access-areas.php
    19 msgid "WordPress Access Areas"
     19msgid "Access Areas for WordPress"
    2020msgstr ""
    2121
     
    5454#: inc/class-accessareas_list_table.php:83
    5555#: inc/class-accessareas_list_table.php:105
    56 #: inc/class-accessareas_list_table.php:163
     56#: inc/class-accessareas_list_table.php:165
    5757msgid "Delete"
    5858msgstr ""
     
    167167
    168168#: inc/class-wpaa_editpost.php:366
    169 #: inc/class-wpaa_settings.php:445
     169#: inc/class-wpaa_settings.php:443
    170170msgid "If somebody tries to view a restricted post directly:"
    171171msgstr ""
     
    313313msgstr ""
    314314
    315 #: inc/class-wpaa_settings.php:391
     315#: inc/class-wpaa_settings.php:389
    316316msgid "Forbid"
    317317msgstr ""
    318318
    319 #: inc/class-wpaa_settings.php:397
     319#: inc/class-wpaa_settings.php:395
    320320msgid "Allow"
    321321msgstr ""
    322322
    323 #: inc/class-wpaa_settings.php:416
     323#: inc/class-wpaa_settings.php:414
    324324msgid "If you are running a role editor plugin such as <a href=\"https://wordpress.org/plugins/user-role-editor/\">User Role editor by Vladimir Garagulya</a> or <a href=\"https://wordpress.org/plugins/wpfront-user-role-editor/\">WPFront User Role Editor by Syam Mohan</a> you can do the same as here by assigning the custom capabilites <code>wpaa_set_view_cap</code>, <code>wpaa_set_edit_cap</code> and <code>wpaa_set_comment_cap</code>."
    325325msgstr ""
    326326
    327 #: inc/class-wpaa_settings.php:421
     327#: inc/class-wpaa_settings.php:419
    328328msgid "By disabling the role capabilities feature you will allow everybody who can at least publish a post to edit the access properties as well."
    329329msgstr ""
    330330
    331 #: inc/class-wpaa_settings.php:425
     331#: inc/class-wpaa_settings.php:423
    332332msgid "Disable Role Capabilities"
    333333msgstr ""
    334334
    335 #: inc/class-wpaa_settings.php:432
     335#: inc/class-wpaa_settings.php:430
    336336msgid "By default everybody who can publish an entry can also edit the access properties such as ‘Who can view’ or ‘Who can edit’.<br /> If this is too generous for you then click on the button below."
    337337msgstr ""
    338338
    339 #: inc/class-wpaa_settings.php:436
     339#: inc/class-wpaa_settings.php:434
    340340msgid "Enable Role Capabilities"
    341341msgstr ""
    342342
    343 #: inc/class-wpaa_settings.php:488
     343#: inc/class-wpaa_settings.php:486
    344344msgid "Don‘t change"
    345345msgstr ""
    346346
    347 #: inc/class-wpaa_settings.php:502
     347#: inc/class-wpaa_settings.php:500
    348348msgid "Set post status of assigned posts after an Access Area has been deleted."
    349349msgstr ""
  • wp-access-areas/tags/1.5.21/wp-access-areas.php

    r3233303 r3362334  
    66
    77/*
    8 Plugin Name: WordPress Access Areas
     8Plugin Name: Access Areas for WordPress
    99Plugin URI: http://wordpress.org/plugins/wp-access-areas/
    1010Description: Lets you define Access Areas and assign them to Posts, Pages and Custom Post types. Through Access Areas you can fine-tune who can view, edit or comment on your posts.
    1111Author: Jörn Lund
    12 Version: 1.5.20
     12Version: 1.5.21
    1313Author URI: https://github.com/mcguffin/
    1414Text Domain: wp-access-areas
     
    3131define( 'WPUND_GLOBAL_USERMETA_KEY', "undisclosed_global_capabilities" );
    3232
    33 function is_accessareas_active_for_network() {
     33function wpaa_is_active_for_network() {
    3434    if ( ! is_multisite() ) {
    3535        return false;
  • wp-access-areas/trunk/.wp-release-info.json

    r3233303 r3362334  
    22  "id": "https://github.com/mcguffin/wp-access-areas/raw/master/.wp-release-info.json",
    33  "slug": "wp-access-areas",
    4   "version": "1.5.20",
     4  "version": "1.5.21",
    55  "url": "http://wordpress.org/plugins/wp-access-areas/",
    6   "package": "https://github.com/mcguffin/wp-access-areas/releases/download/1.5.20/wp-access-areas.zip",
     6  "package": "https://github.com/mcguffin/wp-access-areas/releases/download/1.5.21/wp-access-areas.zip",
    77  "tested": "6.0",
    88  "requires_php": "5.6"
  • wp-access-areas/trunk/README.txt

    r3233303 r3362334  
    1 === WordPress Access Areas ===
     1=== Access Areas for WordPress ===
    22Contributors: podpirate
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WF4Z3HU93XYJA
     
    66Requires PHP: 5.6
    77Tested up to: 6.0
    8 Stable tag: 1.5.20
     8Stable tag: 1.5.21
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9393
    9494== Changelog ==
     95
     96= 1.5.21 =
     97 - Rename Plugin from "WordPress Access Areas" to "Access Areas for WordPress".
    9598
    9699= 1.5.20 =
  • wp-access-areas/trunk/inc/class-accessareas_list_table.php

    r3233303 r3362334  
    130130
    131131            if ( isset( $_REQUEST['orderby'] ) ) {
    132                 $orderby = wp_unslash( $_REQUEST['orderby'] );
     132                // santized later
     133                $orderby = wp_unslash( $_REQUEST['orderby'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    133134            }
    134135
    135136            if ( isset( $_REQUEST['order'] ) ) {
    136                 $order = wp_unslash( $_REQUEST['order'] );
     137                // santized later
     138                $order = wp_unslash( $_REQUEST['order'] ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    137139            }
    138 
     140            // sanitized here
    139141            $order_sql = sanitize_sql_orderby( "{$orderby} {$order}" );
    140142
  • wp-access-areas/trunk/inc/class-wpaa_accessarea.php

    r2518251 r3362334  
    3131
    3232            $blog_id_in = array();
    33             if ( ! is_multisite() || is_accessareas_active_for_network() ) {
     33            if ( ! is_multisite() || wpaa_is_active_for_network() ) {
    3434                $blog_id_in[0] = '%d';
    3535            }
     
    5555            if ( count( $blog_id_in ) ) {
    5656                $args = array_keys( $blog_id_in );
    57                 $query = $wpdb->prepare( $query, ...$args );
     57                $query = $wpdb->prepare( $query, ...$args ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    5858            }
    5959
     
    7070                $query .= " ORDER BY $sql_orderby";
    7171            }
    72             $query = $wpdb->prepare( $query, $blog_id );
     72            $query = $wpdb->prepare( $query, $blog_id ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    7373            return self::_get_cached_result( $query );
    7474        }
     
    131131                    '%' . $wpdb->esc_like( WPUND_USERLABEL_PREFIX ) . '%'
    132132                );
    133                 $usermeta = $wpdb->get_results( $query );
     133                $usermeta = $wpdb->get_results( $query ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    134134
    135135                foreach ( $usermeta as $meta ) {
  • wp-access-areas/trunk/inc/class-wpaa_caps.php

    r3233303 r3362334  
    1717            if ( is_admin() ) {
    1818                add_action( 'admin_menu', array( __CLASS__, 'user_menu' ) );
    19                 if ( is_accessareas_active_for_network() ) {
     19                if ( wpaa_is_active_for_network() ) {
    2020                    add_action( 'network_admin_menu', array( __CLASS__, 'user_menu' ) );
    2121                }
     
    3737            $action = -1;
    3838            if ( isset( $_REQUEST['action'] ) && intval( $_REQUEST['action'] ) !== -1 ) {
    39                 $action = wp_unslash( $_REQUEST['action'] );
     39                $action = sanitize_key(wp_unslash( $_REQUEST['action'] ));
    4040            }
    4141            if ( isset( $_REQUEST['action2'] ) && intval( $_REQUEST['action2'] ) !== -1 ) {
    42                 $action = wp_unslash( $_REQUEST['action2'] );
    43             }
    44             $action = sanitize_key( $action );
     42                $action = sanitize_key(wp_unslash( $_REQUEST['action2'] ));
     43            }
     44            // $action = sanitize_key( $action );
    4545            return $action;
    4646        }
     
    252252                                </th>
    253253                                <td>
    254                                     <input class="regular-text" maxlength="64" type="text" name="cap_title" value="<?php esc_attr_e( $cap_title ); ?>" id="cap_title" placeholder="<?php esc_attr_e( 'New Access Area', 'wp-access-areas' ); ?>" autocomplete="off" />
     254                                    <input class="regular-text" maxlength="64" type="text" name="cap_title" value="<?php echo esc_attr( $cap_title ); ?>" id="cap_title" placeholder="<?php esc_attr_e( 'New Access Area', 'wp-access-areas' ); ?>" autocomplete="off" />
    255255                                </td>
    256256                            </tr>
     
    292292                    }
    293293                    /* translators: %d number of deleted items */
    294                     $message = sprintf( _n( 'Access Area deleted.', '%d Access Areas deleted.', $deleted, 'wp-access-areas' ), $deleted );
     294                    $message = sprintf( _n( 'Access Area deleted.', '%d Access Areas deleted.', $deleted, 'wp-access-areas' ), $deleted ); // phpcs:ignore WordPress.WP.I18n.MissingSingularPlaceholder
    295295                    break;
    296296                case 4: // exists
  • wp-access-areas/trunk/inc/class-wpaa_core.php

    r2236440 r3362334  
    88
    99// ----------------------------------------
    10 // This class initializes the WordPress Access Areas plugin.
     10// This class initializes the Access Areas for WordPress plugin.
    1111// (As of version 1.0 it only loads an apropriate plugin textdomain for translation readyness.)
    1212// ----------------------------------------
  • wp-access-areas/trunk/inc/class-wpaa_editpost.php

    r2720192 r3362334  
    353353
    354354            ?>
    355             <div class="wpaa-select-behaviour<?php esc_attr_e( $is_custom ? ' custom' : '' ); ?>">
     355            <div class="wpaa-select-behaviour<?php echo esc_attr( $is_custom ? ' custom' : '' ); ?>">
    356356                <div class="misc-pub-section">
    357357                    <label for="wpaa_enable_custom_behaviour">
     
    576576                            ?>
    577577                            <div class="<?php echo $val == 'exist' ? 'wpaa-default-permission ' : ''; ?> wpaa-permission dashicons-before dashicons-visibility" title="<?php esc_attr_e( 'Who can read', 'wp-access-areas' ); ?>">
    578                                 <?php esc_html_e( $names[ $val ] ); ?>
     578                                <?php echo esc_html( $names[ $val ] ); ?>
    579579                            </div>
    580580                            <?php
     
    585585                            ?>
    586586                            <div class="<?php echo $val == 'exist' ? 'wpaa-default-permission ' : ''; ?> wpaa-permission dashicons-before dashicons-admin-comments" title="<?php esc_attr_e( 'Who can comment', 'wp-access-areas' ); ?>">
    587                                 <?php esc_html_e( $names[ $val ] ); ?>
     587                                <?php echo esc_html( $names[ $val ] ); ?>
    588588                            </div>
    589589                            <?php
     
    594594                            ?>
    595595                            <div class="<?php echo $val == 'exist' ? 'wpaa-default-permission ' : ''; ?> wpaa-permission dashicons-before dashicons-edit" title="<?php esc_attr_e( 'Who can read', 'wp-access-areas' ); ?>">
    596                                 <?php esc_html_e( $names[ $val ] ); ?>
     596                                <?php echo esc_html( $names[ $val ] ); ?>
    597597                            </div>
    598598                            <?php
  • wp-access-areas/trunk/inc/class-wpaa_install.php

    r2518251 r3362334  
    103103            );
    104104            foreach ( $cols as $idx => $col ) {
    105                 $c = $wpdb->get_results( "SHOW COLUMNS FROM $wpdb->posts LIKE '$col'" );
     105                $c = $wpdb->get_results( "SHOW COLUMNS FROM $wpdb->posts LIKE '$col'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    106106                if ( empty( $c ) ) {
    107                     $wpdb->query( "ALTER TABLE $wpdb->posts ADD COLUMN $col varchar(128) NOT NULL DEFAULT 'exist' AFTER `post_status`;" );
    108                 }
    109 
    110                 $i = $wpdb->query( "SHOW INDEX FROM $wpdb->posts WHERE Key_name = '$idx'" );
     107                    $wpdb->query( "ALTER TABLE $wpdb->posts ADD COLUMN $col varchar(128) NOT NULL DEFAULT 'exist' AFTER `post_status`;" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     108                }
     109
     110                $i = $wpdb->query( "SHOW INDEX FROM $wpdb->posts WHERE Key_name = '$idx'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    111111                if ( empty( $i ) ) {
    112                     $wpdb->query( "ALTER TABLE $wpdb->posts ADD INDEX `$idx` (`$col`);" );
     112                    $wpdb->query( "ALTER TABLE $wpdb->posts ADD INDEX `$idx` (`$col`);" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    113113                }
    114114            }
     
    123123            );
    124124            foreach ( $cols as $idx => $col ) {
    125                 $c = $wpdb->get_results( "SHOW COLUMNS FROM $wpdb->posts LIKE '$col'" );
     125                $c = $wpdb->get_results( "SHOW COLUMNS FROM $wpdb->posts LIKE '$col'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    126126                if ( ! empty( $c ) ) {
    127                     $wpdb->query( "ALTER TABLE $wpdb->posts DROP COLUMN $col;" );
    128                 }
    129 
    130                 $i = $wpdb->query( "SHOW INDEX FROM $wpdb->posts WHERE Key_name = '$idx'" );
     127                    $wpdb->query( "ALTER TABLE $wpdb->posts DROP COLUMN $col;" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     128                }
     129
     130                $i = $wpdb->query( "SHOW INDEX FROM $wpdb->posts WHERE Key_name = '$idx'" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    131131                if ( ! empty( $i ) ) {
    132                     $wpdb->query( "ALTER TABLE $wpdb->posts DROP INDEX ('$idx');" );
     132                    $wpdb->query( "ALTER TABLE $wpdb->posts DROP INDEX ('$idx');" ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    133133                }
    134134            }
     
    211211
    212212            $usermeta = $wpdb->get_results( $wpdb->prepare(
    213                 "SELECT * FROM $wpdb->usermeta WHERE meta_key LIKE '{$wpdb->base_prefix}%capabilities' AND meta_value LIKE %s",
     213                // TODO test escaping
     214                "SELECT * FROM $wpdb->usermeta WHERE meta_key LIKE %s AND meta_value LIKE %s", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
     215                $wpdb->esc_like( WPUND_USERLABEL_PREFIX ) . '%' . $wpdb->esc_like( 'capabilities' ),
    214216                '%' . $wpdb->esc_like( WPUND_USERLABEL_PREFIX ) . '%'
    215217            ) );
  • wp-access-areas/trunk/inc/class-wpaa_posts.php

    r2239939 r3362334  
    169169
    170170            // taken from wp_count_comments
    171             $count = $wpdb->get_results( "SELECT comment_approved, COUNT( * ) AS num_comments FROM {$wpdb->comments} {$join} {$where} GROUP BY comment_approved", ARRAY_A );
     171            $count = $wpdb->get_results( "SELECT comment_approved, COUNT( * ) AS num_comments FROM {$wpdb->comments} {$join} {$where} GROUP BY comment_approved", ARRAY_A ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
    172172
    173173            $total    = 0;
     
    281281        public static function skip_undisclosed_items( $items ) {
    282282            // everything's fine - return.
    283             if ( current_user_can( 'administrator' ) ) {
     283            if ( current_user_can( 'administrator' ) ) { // phpcs:ignore WordPress.WP.Capabilities.RoleFound
    284284                return $items;
    285285            }
     
    322322            global $wpdb, $wp_query;
    323323            // disable filtering: on queries for single posts/pages and for single blog administrators
    324             if ( ( isset( $wp_query ) && is_singular() && preg_match( "/{$wpdb->posts}.(post_name|ID)\s?=/", $where ) ) || ( ! is_multisite() && current_user_can( 'administrator' ) ) ) {
     324            if ( ( isset( $wp_query ) && is_singular() && preg_match( "/{$wpdb->posts}.(post_name|ID)\s?=/", $where ) ) || ( ! is_multisite() && current_user_can( 'administrator' ) ) ) {  // phpcs:ignore WordPress.WP.Capabilities.RoleFound
    325325                return $where;
    326326            }
     
    359359
    360360            $add_where = $wpdb->prepare(
    361                 " {$table_name}post_view_cap IN (" . implode( ',', $fmt ) . ")",
     361                " {$table_name}post_view_cap IN (" . implode( ',', $fmt ) . ")", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
    362362                ...$caps
    363363            );
  • wp-access-areas/trunk/inc/class-wpaa_settings.php

    r3233303 r3362334  
    3838            add_action( 'admin_notices', array( __CLASS__, 'selftest' ) );
    3939
    40             if ( isset( $_GET['action'] ) && wp_unslash( $_GET['action'] ) === 'wpaa-selfrepair' ) {
     40            if ( isset( $_GET['action'] ) && wp_unslash( $_GET['action'] ) === 'wpaa-selfrepair' ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
    4141                add_action( 'admin_init', array( __CLASS__, 'selfrepair' ) );
    4242            }
     
    239239            foreach ( array( 'thead', 'tfoot' ) as $tag ) {
    240240                ?>
    241                 <<?php echo $tag; ?>>
     241                <<?php echo $tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
    242242                    <tr>
    243243                        <th class="manage-column">
     
    257257                        </th>
    258258                    </tr>
    259                 </<?php echo $tag; ?>>
     259                </<?php echo $tag; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
    260260                <?php
    261261            }
     
    278278                    <tr class="post-select <?php echo $alternate ? 'alternate' : ''; ?>">
    279279                        <th>
    280                             <?php esc_html_e( $post_type_object->labels->name ); ?>
     280                            <?php echo esc_html( $post_type_object->labels->name ); ?>
    281281                        </th>
    282282                        <td>
     
    352352                    ?>
    353353                                    <th class="manage-column">
    354                         <?php esc_html_e( $label ); ?>
     354                        <?php echo esc_html( $label ); ?>
    355355                                        <br />
    356                                         <code><small><?php esc_html_e( $cap ); ?></small></code>
     356                                        <code><small><?php echo esc_html( $cap ); ?></small></code>
    357357                                    </th>
    358358                        <?php
     
    376376                                <tr class="role-select <?php echo $alternate ? 'alternate' : ''; ?>">
    377377                                    <th>
    378                                         <?php
    379                                         esc_html_e( translate_user_role( $role_details['name'] ) );
    380                                         ?>
     378                                        <?php echo esc_html( translate_user_role( $role_details['name'] ) ); ?>
    381379                                    </th>
    382380                                <?php
     
    394392                                            } else {
    395393                                                ?>
    396                                                 <button name="grant_cap[<?php esc_attr_e( $role_slug ); ?>]" value="<?php esc_attr_e( $cap ); ?>" type="submit" class="button-primary" />
     394                                                <button name="grant_cap[<?php echo esc_attr( $role_slug ); ?>]" value="<?php echo esc_attr( $cap ); ?>" type="submit" class="button-primary" />
    397395                                                    <?php esc_html_e( 'Allow', 'wp-access-areas' ); ?>
    398396                                                </button>
     
    491489                foreach ( self::get_post_stati() as $post_status => $status_obj ) {
    492490                    ?>
    493                     <option value="<?php esc_attr_e( $post_status ); ?>" <?php selected( $default_post_status, $post_status, true ); ?>>
    494                         <?php esc_html_e( $status_obj->label ); ?>
     491                    <option value="<?php echo esc_attr( $post_status ); ?>" <?php selected( $default_post_status, $post_status, true ); ?>>
     492                        <?php echo esc_html( $status_obj->label ); ?>
    495493                    </option>
    496494                    <?php
  • wp-access-areas/trunk/inc/class-wpaa_template.php

    r3233303 r3362334  
    4949                    }
    5050                    ?>
    51                     <option value="<?php esc_attr_e( $role ); ?>" <?php selected( $selected_cap, $role ); ?>>
     51                    <option value="<?php echo esc_attr( $role ); ?>" <?php selected( $selected_cap, $role ); ?>>
    5252                        <?php echo esc_html( $rolename ); ?>
    5353                    </option>
     
    6868                        <option value="<?php echo esc_attr( $group_cap ); ?>" <?php selected( $selected_cap, $group_cap ); ?>>
    6969                            <?php
    70                                 esc_html_e( $group['title'], 'wp-access-areas' );
     70                                echo esc_html( $group['title'] );
    7171                                echo $group['global'] ? ' ' . esc_html__( '(Network)', 'wp-access-areas' ) : '';
    7272                            ?>
     
    137137            ?>
    138138            <label for="wpaa-view-post-behavior-<?php echo sanitize_key( $value ); ?>">
    139                 <input name="<?php esc_attr_e( $fieldname ); ?>" <?php checked( $value, $post_behavior ); ?> class="wpaa-post-behavior" id="wpaa-view-post-behavior-<?php echo sanitize_key( $value ); ?>" value="<?php esc_attr_e( $value ); ?>" type="radio" />
    140                 <?php esc_html_e( $label ); ?>
     139                <input name="<?php echo esc_attr( $fieldname ); ?>" <?php checked( $value, $post_behavior ); ?> class="wpaa-post-behavior" id="wpaa-view-post-behavior-<?php echo sanitize_key( $value ); ?>" value="<?php echo esc_attr( $value ); ?>" type="radio" />
     140                <?php echo esc_html( $label ); ?>
    141141                <br />
    142142            </label>
  • wp-access-areas/trunk/inc/class-wpaa_users.php

    r3233303 r3362334  
    1616            if ( is_admin() ) {
    1717                add_action( 'admin_init', array( __CLASS__, 'admin_init' ) );
    18                 if ( is_accessareas_active_for_network() ) {
     18                if ( wpaa_is_active_for_network() ) {
    1919                    add_filter( 'wpmu_users_columns', array( __CLASS__, 'add_userlabels_column' ) );
    2020                }
     
    332332        public static function personal_options( $profileuser ) {
    333333            // IS_PROFILE_PAGE : self or other
    334             if ( ! current_user_can( 'promote_users' ) || ( is_network_admin() && ! is_accessareas_active_for_network() ) ) {
     334            if ( ! current_user_can( 'promote_users' ) || ( is_network_admin() && ! wpaa_is_active_for_network() ) ) {
    335335                return;
    336336            }
     
    353353                );
    354354            }
    355             if ( ( is_network_admin() || is_super_admin() ) && is_accessareas_active_for_network() ) {
     355            if ( ( is_network_admin() || is_super_admin() ) && wpaa_is_active_for_network() ) {
    356356                $labelrows[ __( 'Grant Network-Wide Access', 'wp-access-areas' ) ] = array(
    357357                    'network'      => true,
     
    428428                    '<label for="%s">%s</label>',
    429429                    esc_attr( $id ),
    430                     esc_html__( $label->cap_title )
     430                    esc_html( $label->cap_title )
    431431                );
    432432
     
    442442                <input type="hidden" name="blog_id" value="<?php echo intval( $blog_id ); ?>" />
    443443                <input class="cap-add" type="text" name="cap_title" placeholder="<?php esc_attr_e( 'Add New', 'wp-access-areas' ); ?>" />
    444                 <button href="#" class="cap-add-submit button" disabled data-nonce="<?php esc_attr_e( wp_create_nonce( 'userlabel-new' ) ); ?>">
     444                <button href="#" class="cap-add-submit button" disabled data-nonce="<?php echo esc_attr( wp_create_nonce( 'userlabel-new' ) ); ?>">
    445445                    <span class=" dashicons dashicons-plus"></span>
    446446                    <span class="screen-reader-text">
     
    465465            $ret  = '';
    466466            $ret .= self::_listtable_label_select( WPAA_AccessArea::get_blog_userlabels(), $current_label );
    467             if ( is_accessareas_active_for_network() ) {
     467            if ( wpaa_is_active_for_network() ) {
    468468                $ret .= self::_listtable_label_select( WPAA_AccessArea::get_network_userlabels(), $current_label, true );
    469469            }
     
    492492
    493493        private static function _label_select_all( $name, $first_element_label = false, $echo = false ) {
    494             $network = is_accessareas_active_for_network();
     494            $network = wpaa_is_active_for_network();
    495495            $ret     = '';
    496496            $ret    .= '<select name="' . $name . '">';
  • wp-access-areas/trunk/inc/wpaa_roles.php

    r2232646 r3362334  
    9595
    9696    // always true for administrators on local caps
    97     if ( wpaa_is_local_cap( $cap ) && current_user_can( 'administrator' ) || is_super_admin() ) {
     97    if ( wpaa_is_local_cap( $cap ) && current_user_can( 'administrator' ) || is_super_admin() ) { // phpcs:ignore WordPress.WP.Capabilities.RoleFound
    9898        $can = true;
    9999    } else {
  • wp-access-areas/trunk/languages/wp-access-areas-it_IT.po

    r1408124 r3362334  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WordPress Access Areas v1.2.1\n"
     3"Project-Id-Version: Access Areas for WordPress v1.2.1\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2016-04-30 11:31+0100\n"
  • wp-access-areas/trunk/languages/wp-access-areas-pl_PL.po

    r1408124 r3362334  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WordPress Access Areas v1.2.7\n"
     3"Project-Id-Version: Access Areas for WordPress v1.2.7\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2016-04-30 11:31+0100\n"
     
    504504
    505505# @ wp-access-areas
    506 #~ msgid "WordPress Access Areas"
     506#~ msgid "Access Areas for WordPress"
    507507#~ msgstr "Obszary dostępu Wordpress"
    508508
  • wp-access-areas/trunk/languages/wp-access-areas-sv_SE.po

    r1408124 r3362334  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: WordPress Access Areas v1.2.5\n"
     3"Project-Id-Version: Access Areas for WordPress v1.2.5\n"
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2016-04-30 11:32+0100\n"
     
    502502
    503503# @ wp-access-areas
    504 #~ msgid "WordPress Access Areas"
     504#~ msgid "Access Areas for WordPress"
    505505#~ msgstr "Användarzoner"
    506506
  • wp-access-areas/trunk/languages/wp-access-areas.pot

    r3233303 r3362334  
    11# Copyright (C) 2025 Jörn Lund
    2 # This file is distributed under the same license as the WordPress Access Areas plugin.
     2# This file is distributed under the same license as the Access Areas for WordPress plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WordPress Access Areas 1.5.20\n"
     5"Project-Id-Version: Access Areas for WordPress 1.5.21\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-access-areas\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-02-02T09:25:18+00:00\n"
     12"POT-Creation-Date: 2025-09-16T10:43:43+02:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.11.0\n"
     14"X-Generator: WP-CLI 2.12.0\n"
    1515"X-Domain: wp-access-areas\n"
    1616
    1717#. Plugin Name of the plugin
    1818#: wp-access-areas.php
    19 msgid "WordPress Access Areas"
     19msgid "Access Areas for WordPress"
    2020msgstr ""
    2121
     
    5454#: inc/class-accessareas_list_table.php:83
    5555#: inc/class-accessareas_list_table.php:105
    56 #: inc/class-accessareas_list_table.php:163
     56#: inc/class-accessareas_list_table.php:165
    5757msgid "Delete"
    5858msgstr ""
     
    167167
    168168#: inc/class-wpaa_editpost.php:366
    169 #: inc/class-wpaa_settings.php:445
     169#: inc/class-wpaa_settings.php:443
    170170msgid "If somebody tries to view a restricted post directly:"
    171171msgstr ""
     
    313313msgstr ""
    314314
    315 #: inc/class-wpaa_settings.php:391
     315#: inc/class-wpaa_settings.php:389
    316316msgid "Forbid"
    317317msgstr ""
    318318
    319 #: inc/class-wpaa_settings.php:397
     319#: inc/class-wpaa_settings.php:395
    320320msgid "Allow"
    321321msgstr ""
    322322
    323 #: inc/class-wpaa_settings.php:416
     323#: inc/class-wpaa_settings.php:414
    324324msgid "If you are running a role editor plugin such as <a href=\"https://wordpress.org/plugins/user-role-editor/\">User Role editor by Vladimir Garagulya</a> or <a href=\"https://wordpress.org/plugins/wpfront-user-role-editor/\">WPFront User Role Editor by Syam Mohan</a> you can do the same as here by assigning the custom capabilites <code>wpaa_set_view_cap</code>, <code>wpaa_set_edit_cap</code> and <code>wpaa_set_comment_cap</code>."
    325325msgstr ""
    326326
    327 #: inc/class-wpaa_settings.php:421
     327#: inc/class-wpaa_settings.php:419
    328328msgid "By disabling the role capabilities feature you will allow everybody who can at least publish a post to edit the access properties as well."
    329329msgstr ""
    330330
    331 #: inc/class-wpaa_settings.php:425
     331#: inc/class-wpaa_settings.php:423
    332332msgid "Disable Role Capabilities"
    333333msgstr ""
    334334
    335 #: inc/class-wpaa_settings.php:432
     335#: inc/class-wpaa_settings.php:430
    336336msgid "By default everybody who can publish an entry can also edit the access properties such as ‘Who can view’ or ‘Who can edit’.<br /> If this is too generous for you then click on the button below."
    337337msgstr ""
    338338
    339 #: inc/class-wpaa_settings.php:436
     339#: inc/class-wpaa_settings.php:434
    340340msgid "Enable Role Capabilities"
    341341msgstr ""
    342342
    343 #: inc/class-wpaa_settings.php:488
     343#: inc/class-wpaa_settings.php:486
    344344msgid "Don‘t change"
    345345msgstr ""
    346346
    347 #: inc/class-wpaa_settings.php:502
     347#: inc/class-wpaa_settings.php:500
    348348msgid "Set post status of assigned posts after an Access Area has been deleted."
    349349msgstr ""
  • wp-access-areas/trunk/wp-access-areas.php

    r3233303 r3362334  
    66
    77/*
    8 Plugin Name: WordPress Access Areas
     8Plugin Name: Access Areas for WordPress
    99Plugin URI: http://wordpress.org/plugins/wp-access-areas/
    1010Description: Lets you define Access Areas and assign them to Posts, Pages and Custom Post types. Through Access Areas you can fine-tune who can view, edit or comment on your posts.
    1111Author: Jörn Lund
    12 Version: 1.5.20
     12Version: 1.5.21
    1313Author URI: https://github.com/mcguffin/
    1414Text Domain: wp-access-areas
     
    3131define( 'WPUND_GLOBAL_USERMETA_KEY', "undisclosed_global_capabilities" );
    3232
    33 function is_accessareas_active_for_network() {
     33function wpaa_is_active_for_network() {
    3434    if ( ! is_multisite() ) {
    3535        return false;
Note: See TracChangeset for help on using the changeset viewer.