ID); $frozen_post = ($frozen_values !== null and count($frozen_values) > 0 and 'yes' == $frozen_values[0]); if (is_syndicated($post->ID)) : ?>
This is a syndicated post, which originally appeared at ID)); ?>. View original post.
This post was created locally at this website.
ID) : return $post_id; endif; // Check permissions $cap[0] = 'edit_post'; $post_type = FeedWordPress::post( 'post_type' ); $cap[1] = sanitize_key( 'edit_' . $post_type ); if ( !current_user_can( $cap[0], $post_id ) and !current_user_can( $cap[1], $post_id ) ) : return $post_id; endif; // OK, we're golden. Now let's save some data. $freeze_updates = FeedWordPress::post( 'freeze_updates' ); if ( ! is_null( $freeze_updates ) ) : update_post_meta($post_id, '_syndication_freeze_updates', sanitize_meta('_syndication_freeze_updates', $freeze_updates, 'post')); $ret = $freeze_updates; // If you make manual edits through the WordPress editing // UI then they should be run through normal WP formatting // filters. update_post_meta($post_id, '_feedwordpress_formatting_filters', 'yes'); else : delete_post_meta($post_id, '_syndication_freeze_updates'); $ret = NULL; endif; do_action('feedwordpress_save_edit_controls', $post_id); return $ret; } // function feedwordpress_save_edit_controls