|
@@ 454-459 (lines=6) @@
|
| 451 |
|
add_options_page( $page_title, $menu_label, 'read', $menu_slug ); |
| 452 |
|
} elseif ( 'appearances' === $menu_location ) { |
| 453 |
|
add_theme_page( $page_title, $menu_label, 'read', $menu_slug ); |
| 454 |
|
} elseif ( 'objects' === $menu_location ) { |
| 455 |
|
if ( empty( $menu_position ) ) { |
| 456 |
|
$menu_position = null; |
| 457 |
|
} |
| 458 |
|
add_menu_page( $page_title, $menu_label, 'read', $menu_slug, '', $menu_icon, $menu_position ); |
| 459 |
|
} elseif ( 'top' === $menu_location ) { |
| 460 |
|
add_menu_page( $page_title, $menu_label, 'read', $menu_slug, '', $menu_icon, $menu_position ); |
| 461 |
|
} elseif ( 'submenu' === $menu_location && ! empty( $menu_location_custom ) ) { |
| 462 |
|
if ( ! isset( $submenu_items[ $menu_location_custom ] ) ) { |
|
@@ 515-525 (lines=11) @@
|
| 512 |
|
'admin_content_settings', |
| 513 |
|
) |
| 514 |
|
); |
| 515 |
|
} elseif ( 'objects' === $menu_location ) { |
| 516 |
|
if ( empty( $menu_position ) ) { |
| 517 |
|
$menu_position = null; |
| 518 |
|
} |
| 519 |
|
add_menu_page( |
| 520 |
|
$page_title, $menu_label, 'read', $menu_slug, array( |
| 521 |
|
$this, |
| 522 |
|
'admin_content_settings', |
| 523 |
|
), $menu_icon, $menu_position |
| 524 |
|
); |
| 525 |
|
} elseif ( 'top' === $menu_location ) { |
| 526 |
|
add_menu_page( |
| 527 |
|
$page_title, $menu_label, 'read', $menu_slug, array( |
| 528 |
|
$this, |