- renamed all settings with dot syntax - refactored Menu->settings() - changed schema of settings table to allow longer setting name and value - added getAll() static method on Setting Model to fetch all settings (with proper unserialize of value)
15 lines
252 B
PHP
15 lines
252 B
PHP
<?php
|
|
namespace MailPoet\Router;
|
|
|
|
if(!defined('ABSPATH')) exit;
|
|
|
|
class Permissions {
|
|
function __construct() {
|
|
}
|
|
|
|
function set($permissions = array()) {
|
|
$result = \MailPoet\Util\Permissions::set($permissions);
|
|
wp_send_json($result);
|
|
}
|
|
}
|