Skip to content

Commit

Permalink
Merge pull request #365 from jonnynews/fix/php-82
Browse files Browse the repository at this point in the history
Change null to '' for better support with PHP 8.2 and WP 6.2+
  • Loading branch information
felipeelia authored Feb 5, 2024
2 parents 695a3a1 + a179a7f commit 1d8f12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/admin/class-bc-admin-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function register_admin_menu() {
add_submenu_page( 'brightcove', esc_html__( 'Brightcove Labels', 'brightcove' ), esc_html__( 'Labels', 'brightcove' ), 'manage_options', 'brightcove-labels', array( $this, 'render_labels_page' ) );

// These have no parent menu slug so they don't appear in the menu
add_submenu_page( null, esc_html__( 'Add Source', 'brightcove' ), esc_html__( 'Add Source', 'brightcove' ), 'manage_options', 'page-brightcove-edit-source', array( $this, 'render_edit_source_page' ) );
add_submenu_page( null, esc_html__( 'Edit Label', 'brightcove' ), esc_html__( 'Edit Label', 'brightcove' ), 'manage_options', 'page-brightcove-edit-label', array( $this, 'render_edit_label_page' ) );
add_submenu_page( '', esc_html__( 'Add Source', 'brightcove' ), esc_html__( 'Add Source', 'brightcove' ), 'manage_options', 'page-brightcove-edit-source', array( $this, 'render_edit_source_page' ) );
add_submenu_page( '', esc_html__( 'Edit Label', 'brightcove' ), esc_html__( 'Edit Label', 'brightcove' ), 'manage_options', 'page-brightcove-edit-label', array( $this, 'render_edit_label_page' ) );

remove_submenu_page( 'brightcove', 'brightcove' );
}
Expand Down

0 comments on commit 1d8f12a

Please sign in to comment.