Fixes for “0” values and long variable names
-
Hi,
I’m not sure if this is being maintained anymore, but here are my answers to the two problems that I found with this plugin:
“0” value variables are deleted on on save:
in custom-global-variables.php on line 88;
change
if ( ! empty( $var[‘name’] ) && !empty( $var[‘val’] ) ) {to
if ( ! empty( $var[‘name’] ) && !is_null( $var[‘val’] ) ) {N.B. this change will preserve variables even is they have just a space (” “) for a value.
Long variable names display are truncated:
in style.css line 1 edit:
#custom-global-variables-table-definitions>tbody>tr>td textarea{border:1px solid #ddd;box-shadow:none;padding:0.75em;width:100%}
and delete “;width:100%”
Hope this helpa,
Mike
- The topic ‘Fixes for “0” values and long variable names’ is closed to new replies.