File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -446,10 +446,7 @@ public function feedzy_import_feed_options() {
446446 'feedzy_categories ' => array (),
447447 )
448448 );
449- $ published_status = array (
450- 'publish ' => __ ( 'Publish ' , 'feedzy-rss-feeds ' ),
451- 'draft ' => __ ( 'Draft ' , 'feedzy-rss-feeds ' ),
452- );
449+ $ published_status = array ( 'publish ' , 'draft ' );
453450
454451 $ authors = get_users ( array ( 'number ' => 100 ) );
455452 $ authors_array = array ();
Original file line number Diff line number Diff line change 2222 $ wizard_data = get_option ( 'feedzy_wizard_data ' , array () );
2323 $ feed_source = ! empty ( $ wizard_data ['feed ' ] ) ? $ wizard_data ['feed ' ] : '' ;
2424}
25- $ published_status = array (
26- 'publish ' => __ ( 'Publish ' , 'feedzy-rss-feeds ' ),
27- 'draft ' => __ ( 'Draft ' , 'feedzy-rss-feeds ' ),
28- );
25+ $ published_status = array ( 'publish ' , 'draft ' );
2926
3027add_thickbox ();
3128?>
195192 <div class="mx-320">
196193 <select id="feedzy_post_status" class="form-control feedzy-chosen" name="feedzy_meta_data[import_post_status]">
197194 <?php
198- foreach ( $ published_status as $ _status => $ _label ) {
195+ foreach ( $ published_status as $ _status ) {
196+ $ _label = get_post_status_object ( $ _status )->label ;
199197 ?>
200198 <option value="<?php echo esc_attr ( $ _status ); ?> ">
201199 <?php echo esc_html ( $ _label ); ?>
Original file line number Diff line number Diff line change @@ -225,7 +225,8 @@ class="dashicons dashicons-arrow-down-alt2"></span>
225225 <div class="mx-320">
226226 <select id="feedzy_post_status" class="form-control feedzy-chosen" name="feedzy_meta_data[import_post_status]">
227227 <?php
228- foreach ( $ published_status as $ _status => $ _label ) {
228+ foreach ( $ published_status as $ _status ) {
229+ $ _label = get_post_status_object ( $ _status )->label ;
229230 ?>
230231 <option value="<?php echo esc_attr ( $ _status ); ?> " <?php selected ( $ import_post_status , $ _status ); ?> >
231232 <?php echo esc_html ( $ _label ); ?> </option>
You can’t perform that action at this time.
0 commit comments