I make a patch that fix that.
custom-background-extended/admin/class-custom-backgrounds-admin.php
We need to hook on admin_init becase the message, so need to add one more callback.
public function __construct() {
/* Custom meta for plugin on the plugins admin screen. */
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
/* If the current user can't edit custom backgrounds, bail early. */
if ( !current_user_can( 'cbe_edit_background' ) && !current_user_can( 'edit_theme_options' ) )
return;
/* Only load on the edit post screen. */
add_action( 'load-post.php', array( $this, 'load_post' ) );
add_action( 'load-post-new.php', array( $this, 'load_post' ) );
}
to
public function __construct() {
/* Custom meta for plugin on the plugins admin screen. */
add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
add_action( 'admin_init', array( $this, 'attach_load_post_events' ) );
}
public function attach_load_post_events() {
/* If the current user can't edit custom backgrounds, bail early. */
if ( !current_user_can( 'cbe_edit_background' ) && !current_user_can( 'edit_theme_options' ) )
return;
/* Only load on the edit post screen. */
add_action( 'load-post.php', array( $this, 'load_post' ) );
add_action( 'load-post-new.php', array( $this, 'load_post' ) );
}