Skip to content

Commit

Permalink
Merge branch 'issue-13' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Franz Josef Kaiser committed Aug 24, 2015
2 parents ddbba57 + 8b98b0f commit 770e9eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
// Use this filter to adjust the meta key with which a theme author
// can fetch the attachment ID to load the avatar
$key = apply_filters( 'wcm.avatar.meta_key', 'user_avatar' );

// When switching the plugin, this can be reused to allow
// access to the data in other plugins
register_meta( 'user', $key, null, null );

// Register the 'user_id' and 'screen_id'
Expand All @@ -58,7 +61,7 @@
add_filter( 'delete_user', [
new Services\AvatarDeleteService( $key ),
'setup'
] );
], 10, 2 );

// Save files when using the "Browser Uploader"
foreach ( [ 'load-profile.php', 'load-user-edit.php', ] as $filter )
Expand Down Expand Up @@ -128,7 +131,7 @@
[ 'profile', 'user-edit', 'media', 'upload', ]
),
'setup'
] );
], 10, 3 );


// Limit allowed MIME types for image uploads
Expand All @@ -139,7 +142,7 @@
[ 'profile', 'user-edit', 'media', 'upload', ]
),
'setup'
] );
], 10, 2 );


# Sizes
Expand Down

0 comments on commit 770e9eb

Please sign in to comment.