Permalink
Browse files

Better function name

The hook name alone isn't descriptive of what is happening when the hook run.
  • Loading branch information...
1 parent e7f653e commit f65363de7c8bfc3e3f8d5e4154a1c218e347d398 @evansolomon committed Oct 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 import-linked-images.php
@@ -8,7 +8,7 @@
*/
class Import_Linked_Images {
- static function content_save_pre( $content ) {
+ static function replace_external_images( $content ) {
$external_images = self::get_external_images( stripslashes( $content ) );
foreach ( $external_images as $external_image ) {
@@ -49,4 +49,4 @@ function get_external_images( $content ) {
}
}
-add_filter( 'content_save_pre', array( 'Import_Linked_Images', 'content_save_pre' ) );
+add_filter( 'content_save_pre', array( 'Import_Linked_Images', 'replace_external_images' ) );

0 comments on commit f65363d

Please sign in to comment.