php 8 compability admin interface
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Asked
Viewed
5 times
so on php 8 on admin interface it not shows me the saved values of this code
// F O N T S I Z E
$val = $default['size'];
if ( isset($typography_stored['size']) != "") {
$val = $typography_stored['size'];
}
$output .= '<div class="atp-typo-size"><div class="select_wrapper"><select class="select" name="'. $value['id'].'_size" id="'. $value['id'].'_size">';
$output .= '<option value="">Font Size</option>';
for ($i = 9; $i < 71; $i++){
if($val == $i){
$active="selected="selected"";
} else {
$active="";
}
$output .= '<option value="'. $i .'px" ' . $active . '>'. $i .'px</option>';
}
$output .= '</select></div></div>';
// L I N E H E I G H T
$val = $default['lineheight'];
if ( isset($typography_stored['lineheight']) != "") {
$val = $typography_stored['lineheight'];
}
$output .= '<div class="atp-typo-lineheight"><div class="select_wrapper"><select class="select" name="'. $value['id'].'_lineheight" id="'. $value['id'].'_lineheight">';
$output .= '<option value="">Line Height</option>';
for ($i = 9; $i < 71; $i++){
if($val == $i){
$active="selected="selected"";
} else {
$active="";
}
$output .= '<option value="'. $i .'px" ' . $active . '>'. $i .'px</option>';
}
$output .= '</select></div></div>';
so the problem is for ($i = 9; $i < 71; $i++){
because when i set the 7.4 php it shows fine to the interface of admin it only not shows on php 8 can you help me ? thanks
lang-php
Leave an answer