• Resolved vmiazaki

    (@vmiazaki)


    Hi,

    When updating MB Custom Post Types & Custom Taxonomies form version 2.2.5 to 2.2.6, all my dashicons are replaced with the default icon. The order of the dashboard is messed up as well:

    Before update: https://rzfg.co/zGONl4
    After update: https://rzfg.co/JSXxe4

    Is there a way to easily fix this. I have tested on multiple sites and have found the same issue on all of them.

    I’ve been waiting for an update, but since it’s been a month since the update was released, I figured it was time to ask about it. Hopefully it’s an easy fix.

    Thanks ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter vmiazaki

    (@vmiazaki)

    Hi,

    I updated to v2.3.0 today and still seeing the same issue with the icons on multiple sites. Any idea why that would be happening?

    Thanks ??

    Plugin Author Anh Tran

    (@rilwis)

    Hi @vmiazaki,

    I’ve just tested on my test site and couldn’t replicate the problem. Can you please share the PHP code of the post type?

    Thread Starter vmiazaki

    (@vmiazaki)

    One of the sites that I am having this issue is https://staging.dldllp.com/.
    I just tried to update the plugin there and the icon for the Team CPT goes away.

    Here if the PHP code of that CPT:

    <?php
    add_action( 'init', 'your_prefix_register_post_type' );
    function your_prefix_register_post_type() {
    	$labels = [
    		'name'               => esc_html__( 'Team', 'text-domain' ),
    		'singular_name'      => esc_html__( 'Team', 'text-domain' ),
    		'menu_name'          => esc_html__( 'Team', 'text-domain' ),
    		'name_admin_bar'     => esc_html__( 'Team', 'text-domain' ),
    		'all_items'          => esc_html__( 'All Team', 'text-domain' ),
    		'add_new'            => esc_html__( 'Add new', 'text-domain' ),
    		'add_new_item'       => esc_html__( 'Add new Team', 'text-domain' ),
    		'edit_item'          => esc_html__( 'Edit Team', 'text-domain' ),
    		'new_item'           => esc_html__( 'New Team', 'text-domain' ),
    		'view_item'          => esc_html__( 'View Team', 'text-domain' ),
    		'search_items'       => esc_html__( 'Search Team', 'text-domain' ),
    		'not_found'          => esc_html__( 'No Team found', 'text-domain' ),
    		'not_found_in_trash' => esc_html__( 'No Team found in Trash', 'text-domain' ),
    		'parent_item_colon'  => esc_html__( 'Parent Team', 'text-domain' ),
    		'text_domain'        => esc_html__( 'text-domain', 'text-domain' ),
    	];
    	$args = [
    		'label'                            => esc_html__( '', 'text-domain' ),
    		'labels'                           => $labels,
    		'description'                      => '',
    		'public'                           => true,
    		'exclude_from_search'              => false,
    		'publicly_queryable'               => true,
    		'show_ui'                          => true,
    		'show_in_nav_menus'                => true,
    		'show_in_admin_bar'                => true,
    		'show_in_rest'                     => true,
    		'hierarchical'                     => false,
    		'query_var'                        => true,
    		'can_export'                       => true,
    		'the_grid_item_custom_link_target' => _self,
    		'the_grid_item_col'                => true,
    		'the_grid_item_row'                => true,
    		'the_grid_item_content_color'      => dark,
    		'the_grid_item_overlay_color'      => light,
    		'the_grid_item_video_ratio'        => 4:3,
    		'the_grid_item_youtube_ratio'      => 4:3,
    		'the_grid_item_vimeo_ratio'        => 4:3,
    		'the_grid_item_wistia_ratio'       => 4:3,
    		'_wp_old_slug'                     => auto-draft__trashed,
    		'has_archive'                      => true,
    		'rest_base'                        => '',
    		'show_in_menu'                     => 'undefined',
    		'menu_icon'                        => undefined,
    		'capability_type'                  => 'post',
    		'supports'                         => ['title', 'editor', 'thumbnail', 'revisions'],
    		'taxonomies'                       => [],
    		'rewrite'                          => [
    			'with_front' => true,
    		],
    	];
    
    	register_post_type( 'team', $args );
    }

    I can share the login and pw if you want to take a look at the backend. Let me know!

    Hi, I am also having that same issue where all the custom menu icons that I chose for my CPTs are replaced by the default post icon. Is there any way to fix that without having to manually choose the icons again? Thanks!

    Plugin Author Anh Tran

    (@rilwis)

    The fix from Github works. Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Broken dashicons with v2.2.6’ is closed to new replies.