Skip to content

Commit

Permalink
Merge pull request #3 from humanmade/rename-class
Browse files Browse the repository at this point in the history
update class name
  • Loading branch information
pdewouters committed Jul 3, 2015
2 parents 510af47 + c8df6a6 commit 9312cbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hm-image-placeholders.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
Plugin::get_instance();

if ( is_admin() ) {
require_once __DIR__ . '/inc/class-hm-image-placeholders-admin.php';
HM_Image_Placeholders_Admin::get_instance();
require_once __DIR__ . '/inc/class-admin.php';
Admin::get_instance();
}

Plugin::get_instance();
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

namespace HM_Image_Placeholder;

class HM_Image_Placeholders_Admin {
class Admin {

private static $instance;

public static function get_instance() {

if ( ! ( self::$instance instanceof HM_Image_Placeholders_Admin ) ) {
self::$instance = new HM_Image_Placeholders_Admin();
if ( ! ( self::$instance instanceof Admin ) ) {
self::$instance = new Admin();
self::$instance->init();
}

Expand Down

0 comments on commit 9312cbd

Please sign in to comment.