← All changes
|
modules/reading-progress/widgets/reading-progress.php
+4
-3
4.0.9
→
4.5.6
View file →
| @@ -173,9 +173,9 @@ | ||
| 173 | 173 | $settings = $this->get_settings_for_display(); |
| 174 | 174 | |
| 175 | 175 | $position = $settings['direction'] == 'horizontal' ? $settings['horizontal_position'] : $settings['vertical_position']; |
| 176 | 176 | |
| 177 | - $this->add_render_attribute( | |
| 177 | + $this->add_render_attribute( | |
| 178 | 178 | [ |
| 179 | 179 | 'reading-progress-settings' => [ |
| 180 | 180 | 'id' => $id, |
| 181 | 181 | 'class' => 'upk-reading-progress', |
| @@ -194,8 +194,9 @@ | ||
| 194 | 194 | ] |
| 195 | 195 | ] |
| 196 | 196 | ); |
| 197 | 197 | |
| 198 | - echo '<div '.$this->get_render_attribute_string( 'reading-progress-settings' ).'></div>'; | |
| 199 | - | |
| 198 | + ?> | |
| 199 | + <div <?php $this->print_render_attribute_string( 'reading-progress-settings' ); ?>></div> | |
| 200 | + <?php | |
| 200 | 201 | } |
| 201 | 202 | } |