PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/admin/meta-box/fields/image-dimensions.php +23 -23 4.3.94.4.8 View file →
@@ -1,23 +1,23 @@
1 -<?php
2 -$size = $value['value'];
3 -$width = isset( $size['width'] ) ? $size['width'] : $value['default'][0];
4 -$height = isset( $size['height'] ) ? $size['height'] : $value['default'][1];
5 -$crop = isset( $size['crop'] ) ? $size['crop'] : $value['default'][2];
6 -?>
7 -<tr valign="top">
8 - <th scope="row" class="titledesc">
9 - <label>
10 - <?php echo esc_html( $value['title'] ); ?>
11 - <?php echo wp_kses_post( $tooltip_html ); ?>
12 - </label>
13 -</th>
14 - <td class="forminp image_width_settings">
15 - <input name="<?php echo esc_attr( $value['id'] ); ?>[width]"
16 - id="<?php echo esc_attr( $value['id'] ); ?>-width" type="text"
17 - size="5" value="<?php echo esc_attr( $width ); ?>" />&times;
18 - <input name="<?php echo esc_attr( $value['id'] ); ?>[height]"
19 - id="<?php echo esc_attr( $value['id'] ); ?>-height"
20 - type="text" size="5"
21 - value="<?php echo esc_attr( $height ); ?>" />px
22 - </td>
23 -</tr>
1 +<?php
2 +$size = $value['value'];
3 +$width = isset( $size['width'] ) ? $size['width'] : $value['default'][0];
4 +$height = isset( $size['height'] ) ? $size['height'] : $value['default'][1];
5 +$crop = isset( $size['crop'] ) ? $size['crop'] : $value['default'][2];
6 +?>
7 +<tr valign="top">
8 + <th scope="row" class="titledesc">
9 + <label>
10 + <?php echo esc_html( $value['title'] ); ?>
11 + <?php echo wp_kses_post( $tooltip_html ); ?>
12 + </label>
13 +</th>
14 + <td class="forminp image_width_settings">
15 + <input name="<?php echo esc_attr( $value['id'] ); ?>[width]"
16 + id="<?php echo esc_attr( $value['id'] ); ?>-width" type="text"
17 + size="5" value="<?php echo esc_attr( $width ); ?>" />&times;
18 + <input name="<?php echo esc_attr( $value['id'] ); ?>[height]"
19 + id="<?php echo esc_attr( $value['id'] ); ?>-height"
20 + type="text" size="5"
21 + value="<?php echo esc_attr( $height ); ?>" />px
22 + </td>
23 +</tr>