mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-06 02:45:43 +03:00
Switch inputs to default editable
Use `$readonly` variable to toggle on readonly state
This commit is contained in:
parent
61ef972391
commit
001c8ee243
7 changed files with 14 additions and 12 deletions
|
@ -135,7 +135,7 @@ function add_meta_boxes() {
|
|||
* @param array $box
|
||||
*/
|
||||
function render_meta_boxes( $pledge, $box ) {
|
||||
$editable = current_user_can( 'edit_pledge', $pledge->ID );
|
||||
$readonly = ! current_user_can( 'edit_page', $pledge->ID );
|
||||
$data = array();
|
||||
|
||||
foreach ( get_pledge_meta_config() as $key => $config ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue