Field “Availability:” does not retrieve stored value correctly
-
Changes:
/pdf24-post-to-pdf/inc/config.php
//Availability $pdf24Plugin['availability'] = array( 'public' => 'For all visitors', 'private' => 'Only for logged in users', 'default' => 'public' );
/pdf24-post-to-pdf/inc/optionsPage.php
function pdf24Plugin_getAvailabilityOptions() { global $pdf24Plugin; $currentAvailability = get_option('pdf24Plugin_availability'); foreach($pdf24Plugin['availability'] as $key => $val) { if($key != 'default') { $out .= '<option value="'. $key .'"'. ($key == $currentAvailability? ' selected' : '') .'>'. $val .'</option>'; } } return $out; }
<tr> <td class="tr1">Availability:</td> <td class="tr2"><select name="availability"><?php echo pdf24Plugin_getAvailabilityOptions(); ?></select></td> </tr>
- The topic ‘Field “Availability:” does not retrieve stored value correctly’ is closed to new replies.