Skip to content

Commit

Permalink
fix some merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
paul de wouters committed Jul 1, 2015
1 parent 5b33f3b commit 2296511
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hm-image-placeholders.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
HM_Image_Placeholders_Admin::get_instance();
}

HM_Image_Placeholders::get_instance();
Plugin::get_instance();
4 changes: 3 additions & 1 deletion inc/class-hm-image-placeholders-admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace HMImagePlaceholders;
<?php

namespace HM_Image_Placeholder;

class HM_Image_Placeholders_Admin {

Expand Down
6 changes: 3 additions & 3 deletions inc/class-plugin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace HMImagePlaceholders;
<?php

namespace HM_Image_Placeholder;

Expand Down Expand Up @@ -56,7 +56,7 @@ public function plugins_loaded() {
*/
function filter_wp_get_attachment_image_attributes( $attr, $attachment, $size ) {

$colors_hex = $this->get_colors_for_attachment( $id );
$colors_hex = $this->get_colors_for_attachment( $attachment->ID );

if ( ! $colors_hex ) {
return $attr;
Expand Down Expand Up @@ -139,7 +139,7 @@ public function filter_wp_generate_attachment_metadata( $metadata, $attachment_i
*/
public function get_colors_for_attachment( $id ) {

return get_post_meta( $attachment->ID, 'hmgp_image_colors', true );
return get_post_meta( $id, 'hmgp_image_colors', true );

}

Expand Down

0 comments on commit 2296511

Please sign in to comment.