@@ 159-168 (lines=10) @@ | ||
156 | ||
157 | // Clear an individual feed cache. |
|
158 | // @todo Convert the clear cache request to ajax. |
|
159 | if ( isset( $_REQUEST['clear_cache'] ) ) { |
|
160 | ||
161 | $id = intval( $_REQUEST['clear_cache'] ); |
|
162 | ||
163 | if ( $id > 0 ) { |
|
164 | simcal_delete_feed_transients( $id ); |
|
165 | } |
|
166 | ||
167 | wp_redirect( remove_query_arg( 'clear_cache' ) ); |
|
168 | } |
|
169 | ||
170 | // Duplicate a feed post type. |
|
171 | if ( isset( $_REQUEST['duplicate_feed'] ) ) { |
|
@@ 171-180 (lines=10) @@ | ||
168 | } |
|
169 | ||
170 | // Duplicate a feed post type. |
|
171 | if ( isset( $_REQUEST['duplicate_feed'] ) ) { |
|
172 | ||
173 | $id = intval( $_REQUEST['duplicate_feed'] ); |
|
174 | ||
175 | if ( $id > 0 ) { |
|
176 | $this->duplicate_feed( $id ); |
|
177 | } |
|
178 | ||
179 | wp_redirect( remove_query_arg( 'duplicate_feed' ) ); |
|
180 | } |
|
181 | ||
182 | $bulk_actions = new Bulk_Actions( 'calendar' ); |
|
183 |