Changeset 671 for plugins/footnotes/trunk/footnotes.plugin.php
- Timestamp:
- 07/11/08 08:14:00 (4 months ago)
- Files:
-
- 1 modified
-
plugins/footnotes/trunk/footnotes.plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/footnotes/trunk/footnotes.plugin.php
r644 r671 38 38 public function filter_post_content( $content, $post ) 39 39 { 40 // If we're on the publish page, replacement will be destructive. 41 // We don't want that, so return here. 42 $controller = Controller::get_handler(); 43 if ( $controller->action == 'admin' && $controller->handler_vars['page'] == 'publish' ) { 44 return $content; 45 } 46 40 47 // If there are no footnotes, save the trouble and just return it as is. 41 48 if ( strpos( $content, '<footnote>' ) === false ) {
