Changeset 1304678
- Timestamp:
- 12/09/2015 09:01:36 PM (10 years ago)
- Location:
- wp-rss-importer/trunk
- Files:
-
- 3 edited
-
admin/class-admin.php (modified) (2 diffs)
-
admin/templates/setting-rss.php (modified) (1 diff)
-
wp-rss-importer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-rss-importer/trunk/admin/class-admin.php
r1300796 r1304678 38 38 update_option('logics_sourcelink',$_POST['logics']['sourcelinktext']); 39 39 update_option('logics_source_url_meta',$_POST['logics']['source_url_meta']); 40 /* Modification suggested by Elliot */ 41 update_option('logics_feed_id_meta',$_POST['logics']['feed_id_meta']); 42 /*End of modification*/ 40 43 echo 'Updated..'; 41 44 } … … 260 263 if(get_option('logics_source_url_meta') == 1) { 261 264 add_post_meta( $post_id, 'wpri_sourcelink', $xmltoarray[0] ); 265 } 266 /* Modification suggested by Elliot */ 267 if(get_option('logics_feed_id_meta') == 1) { 268 add_post_meta( $post_id, 'wpri_feedid', $rss_id ); 262 269 } 270 /*End of mod*/ 263 271 wp_set_object_terms( $post_id, $termArray, $rdata['taxid'] ); 264 272 global $wpdb; -
wp-rss-importer/trunk/admin/templates/setting-rss.php
r1300796 r1304678 16 16 <p><input type="checkbox" name="logics[source_url_meta]" value="1" <?php if(get_option('logics_source_url_meta') == 1) { ?> checked <?php } ?> /> Save source URL as custom meta of post for future use</p> 17 17 18 <!-- Save feed id as custom meta feature added by Elliot Sabitov --> 19 <p><input type="checkbox" name="logics[feed_id_meta]" value="1" <?php if(get_option('logics_feed_id_meta') == 1) { ?> checked <?php } ?> /> Save Feed ID as custom meta of post for future use</p> 20 <!-- end of save feed id --> 21 18 22 <p> 19 23 <input type="hidden" name="logics_actions" value="logics_setting_rss" /> -
wp-rss-importer/trunk/wp-rss-importer.php
r1292076 r1304678 172 172 if(get_option(logics_source_url_meta) == 1) { 173 173 add_post_meta( $post_id, 'wpri_sourcelink', $xmltoarray[0] ); 174 } 175 /* Modification suggested by Elliot */ 176 if(get_option(logics_feed_id_meta) == 1) { 177 add_post_meta( $post_id, 'wpri_feedid', $_REQUEST[id] ); 174 178 } 179 /*End of mod*/ 175 180 wp_set_object_terms( $post_id, $termArray, $rdata['taxid'] ); 176 181 global $wpdb;
Note: See TracChangeset
for help on using the changeset viewer.