File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,12 @@ public function __toString() {
9090 *
9191 * @return MslsAdminIcon
9292 */
93- public static function create () {
93+ public static function create ($ type = null ) {
9494 $ obj = MslsContentTypes::create ();
9595
96- $ type = $ obj ->get_request ();
96+ if (!$ type ) {
97+ $ type = $ obj ->get_request ();
98+ }
9799 if ( $ obj ->is_taxonomy () ) {
98100 return new MslsAdminIconTaxonomy ( $ type );
99101 }
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ public function render_select() {
183183 switch_to_blog ( $ blog ->userblog_id );
184184
185185 $ language = $ blog ->get_language ();
186- $ icon = MslsAdminIcon::create ()
186+ $ icon = MslsAdminIcon::create ( $ type )
187187 ->set_language ( $ language )
188188 ->set_icon_type ( 'flag ' );
189189
You can’t perform that action at this time.
0 commit comments