CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Sat, 11 Oct 2025 02:41:59 GMT
content-type: text/html;charset=utf-8
vary: Accept-Encoding
etag: W/"anonymous/Sat, 23 Nov 2024 15:34:25 GMT/1426452ea0ac84324ebb0440bb0833e7"
cache-control: must-revalidate
alt-svc: h3=":443"; ma=86400
x-nc: MISS
content-encoding: gzip
Changeset 3195527 for view-admin-as – WordPress Plugin Repository
Skip to content
Changeset 3195527 for view-admin-as
- Timestamp:
- 11/23/2024 03:34:25 PM (11 months ago)
- Author:
- keraweb
- Message:
-
View Admin As - v1.8.10
- Location:
- view-admin-as
- Files:
-
- 56 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
view-admin-as/trunk/includes/class-compat.php
r2523964 r3195527 464 464 'caption' => esc_html__( 'View Admin As', VIEW_ADMIN_AS_DOMAIN ), 465 465 'parent' => 'custom', 466 'level' => 3,466 'level' => 2, 467 467 ); 468 468 return $groups; -
view-admin-as/trunk/includes/class-controller.php
r2523964 r3195527 109 109 * @since 0.1.0 110 110 * @since 1.2.0 Only check for key 111 * @since 1.8.10 Reset view in store 111 112 * @example https://www.your.domain/wp-admin/?reset-view 112 113 */ 113 114 if ( VAA_API::is_request( 'reset-view', 'get' ) ) { 114 115 $this->reset_view(); 116 $this->store->set_view( array() ); 115 117 } 116 118 /** … … 118 120 * 119 121 * @since 1.3.4 122 * @since 1.8.10 Reset view in store 120 123 * @example https://www.your.domain/wp-admin/?reset-all-views 121 124 */ 122 125 if ( VAA_API::is_request( 'reset-all-views', 'get' ) ) { 123 126 $this->reset_all_views(); 127 $this->store->set_view( array() ); 124 128 } 125 129 } -
view-admin-as/trunk/includes/class-type.php
r2523964 r3195527 143 143 144 144 if ( $this->is_enabled() ) { 145 $this->add_action( 'vaa_view_admin_as_pre_init', array( $this, 'init' ) ); 145 $this->add_action( 'vaa_view_admin_as_pre_init', array( $this, 'setup' ) ); 146 147 if ( did_action( 'init' ) ) { 148 $this->init(); 149 } else { 150 $this->add_action( 'init', array( $this, 'init' ) ); 151 } 146 152 } 147 153 } … … 192 198 * Setup module and hooks. 193 199 * 194 * @since 1.8.0 200 * @since 1.8.0 Renamed from init() 201 * @since 1.8.10 195 202 * @access protected 196 * @return bool Successful init?197 */ 198 public function init() {203 * @return bool Successful setup? 204 */ 205 public function setup() { 199 206 200 207 $this->store_data(); … … 206 213 207 214 return false; 215 } 216 217 /** 218 * Init module and hooks. 219 * 220 * @since 1.8.10 221 * @access protected 222 * @return bool Successful init? 223 */ 224 public function init() { 225 return true; 208 226 } 209 227 -
view-admin-as/trunk/includes/class-update.php
r2523964 r3195527 62 62 */ 63 63 public function maybe_db_update() { 64 $db_version = strtolower( $this->store->get_optionData( 'db_version' ) );64 $db_version = strtolower( (string) $this->store->get_optionData( 'db_version' ) ); 65 65 if ( ! $db_version ) { 66 66 self::$fresh_install = true; … … 84 84 ); 85 85 86 $current_db_version = strtolower( $this->store->get_optionData( 'db_version' ) );86 $current_db_version = strtolower( (string) $this->store->get_optionData( 'db_version' ) ); 87 87 88 88 // No need to run update script if it's a clean installation. -
view-admin-as/trunk/modules/class-caps.php
r2523964 r3195527 68 68 'do_view' => 8, 69 69 ); 70 70 } 71 72 /** 73 * @inheritDoc 74 */ 75 public function init() { 71 76 $this->label = __( 'Capabilities', VIEW_ADMIN_AS_DOMAIN ); 72 77 $this->label_singular = __( 'Capability', VIEW_ADMIN_AS_DOMAIN ); 78 return parent::init(); 73 79 } 74 80 -
view-admin-as/trunk/modules/class-groups.php
r2523964 r3195527 88 88 $this->priorities['toolbar'] = 40; 89 89 90 $this->label = $this->translate_remote( 'Groups' );91 $this->label_singular = $this->translate_remote( 'Group' );92 $this->description = __( 'Plugin' ) . ': ' . $this->label;93 94 90 // Add groups capabilities. 95 91 $this->capabilities[] = $this->cap; … … 113 109 * @access private 114 110 */ 115 public function init() {116 117 if ( parent:: init() ) {111 public function setup() { 112 113 if ( parent::setup() ) { 118 114 119 115 if ( defined( 'GROUPS_PLUGIN_URL' ) ) { … … 124 120 $this->add_action( 'vaa_view_admin_as_do_view', array( $this, 'do_view' ) ); 125 121 } 122 } 123 124 /** 125 * @inheritDoc 126 */ 127 public function init() { 128 $this->label = $this->translate_remote( 'Groups' ); 129 $this->label_singular = $this->translate_remote( 'Group' ); 130 $this->description = __( 'Plugin' ) . ': ' . $this->label; 131 return parent::init(); 126 132 } 127 133 -
view-admin-as/trunk/modules/class-languages.php
r2523964 r3195527 75 75 'do_view' => 10, 76 76 ); 77 77 } 78 79 /** 80 * @inheritDoc 81 */ 82 public function init() { 78 83 $this->label = __( 'Languages', VIEW_ADMIN_AS_DOMAIN ); 79 84 $this->label_singular = __( 'Language', VIEW_ADMIN_AS_DOMAIN ); 85 return parent::init(); 80 86 } 81 87 -
view-admin-as/trunk/modules/class-restrict-user-access.php
r2523964 r3195527 134 134 $this->priorities['toolbar'] = 40; 135 135 136 $this->label = 'Access Levels';137 $this->label_singular = 'Access Level';138 $this->description = __( 'Plugin' ) . ': ' . $this->translate_remote( 'Restrict User Access' );139 140 136 $this->add_action( 'init', array( $this, 'set_labels' ), 99999 ); 141 137 } … … 161 157 * @access private 162 158 */ 163 public function init() {164 165 if ( parent:: init() ) {159 public function setup() { 160 161 if ( parent::setup() ) { 166 162 $this->add_action( 'vaa_admin_bar_roles_after', array( $this, 'admin_bar_roles_after' ), 10, 2 ); 167 163 } else { … … 169 165 $this->add_action( 'vaa_view_admin_as_do_view', array( $this, 'do_view' ) ); 170 166 } 167 } 168 169 public function init() { 170 $this->label = 'Access Levels'; 171 $this->label_singular = 'Access Level'; 172 $this->description = __( 'Plugin' ) . ': ' . $this->translate_remote( 'Restrict User Access' ); 173 return parent::init(); // TODO: Change the autogenerated stub 171 174 } 172 175 -
view-admin-as/trunk/modules/class-roles.php
r2523964 r3195527 78 78 'do_view' => 5, 79 79 ); 80 80 } 81 82 /** 83 * @inheritDoc 84 */ 85 public function init() { 81 86 $this->label = __( 'Roles', VIEW_ADMIN_AS_DOMAIN ); 82 87 $this->label_singular = __( 'Role', VIEW_ADMIN_AS_DOMAIN ); 88 return parent::init(); 83 89 } 84 90 -
view-admin-as/trunk/modules/class-users.php
r2851825 r3195527 88 88 ); 89 89 90 $this->label = __( 'Users', VIEW_ADMIN_AS_DOMAIN );91 $this->label_singular = __( 'User', VIEW_ADMIN_AS_DOMAIN );92 93 90 $this->init_hooks(); 94 91 … … 117 114 $this->add_action( 'vaa_view_admin_as_pre_init', array( $this, 'ajax_search_users' ) ); 118 115 } 116 } 117 118 /** 119 * @inheritDoc 120 */ 121 public function init() { 122 $this->label = __( 'Users', VIEW_ADMIN_AS_DOMAIN ); 123 $this->label_singular = __( 'User', VIEW_ADMIN_AS_DOMAIN ); 124 return parent::init(); 119 125 } 120 126 -
view-admin-as/trunk/readme.txt
r3186074 r3195527 6 6 Tested up to: 6.7 7 7 Requires PHP: 5.2.4 8 Stable tag: 1.8. 98 Stable tag: 1.8.10 9 9 10 10 View the WordPress admin as a different role or visitor, switch between users, temporarily change your capabilities, set screen settings for roles. … … 210 210 == Changelog == 211 211 212 = 1.8.10 = 213 214 * **Compatibility:** Move label initialization to fix `_load_textdomain_just_in_time` notice since WP 6.7. 215 * **Fix:** Clear view in current session when resetting manually. 216 * **Fix:** URE Integration: Fix the level at which the View Admin As group appears. [#135](https://github.com/JoryHogeveen/view-admin-as/pull/135) (credits @pbiron) 217 * **Tests:** Fix unit tests. 218 219 Detailed info: [PR on GitHub](https://github.com/JoryHogeveen/view-admin-as/pull/136) 220 212 221 = 1.8.9 = 213 222 -
view-admin-as/trunk/view-admin-as.php
r3095879 r3195527 4 4 * @package View_Admin_As 5 5 * @since 0.1.0 6 * @version 1.8. 96 * @version 1.8.10 7 7 * @licence GPL-2.0+ 8 8 * @link https://github.com/JoryHogeveen/view-admin-as … … 12 12 * Plugin URI: https://wordpress.org/plugins/view-admin-as/ 13 13 * Description: View the WordPress admin as a different role or visitor, switch between users, temporarily change your capabilities, set default screen settings for roles. 14 * Version: 1.8. 914 * Version: 1.8.10 15 15 * Author: Jory Hogeveen 16 16 * Author URI: https://www.keraweb.nl … … 45 45 if ( ! class_exists( 'VAA_View_Admin_As' ) && ! function_exists( 'view_admin_as' ) ) { 46 46 47 define( 'VIEW_ADMIN_AS_VERSION', '1.8. 9' );47 define( 'VIEW_ADMIN_AS_VERSION', '1.8.10' ); 48 48 define( 'VIEW_ADMIN_AS_DB_VERSION', '1.8' ); 49 49 define( 'VIEW_ADMIN_AS_DOMAIN', 'view-admin-as' );
Note: See TracChangeset
for help on using the changeset viewer.