[ Index ]

MailPress 7.2

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-admin/includes/settings/roles_and_capabilities/ -> update.php (source)

   1  <?php // roles_and_capabilities => no sanitize here, only checkboxes
   2  
   3  if ( isset( MP_AdminPage::$pst_['cap'] ) )
   4  {
   5      global $wp_roles;
   6      foreach( $wp_roles->role_names as $role => $name )
   7      {
   8          if ( 'administrator' == $role ) continue;
   9          
  10          if ( !isset( MP_AdminPage::$pst_['cap'][$role] ) ) MP_AdminPage::$pst_['cap'][$role] = array();
  11          
  12          update_option( 'MailPress_r&c_' . $role, MP_AdminPage::$pst_['cap'][$role] );    
  13      }
  14  
  15      $message = __( "'Roles and capabilities' settings saved", 'MailPress' );
  16  }


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1