Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
candy02058912 committed Jan 23, 2024
1 parent 8beaff1 commit b25fbc2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,10 @@ public function add_options_menu() {
* Adds Jetpack menu.
*
* @param int $position The position of the menu item in the menu.
* @param bool $seperator Whether to add a separator before the menu item.
* @param bool $separator Whether to add a separator before the menu item.
*/
public function add_jetpack_menu( $position = 50, $seperator = true ) {
if ( $seperator ) {
public function add_jetpack_menu( $position = 50, $separator = true ) {
if ( $separator ) {
$this->add_admin_menu_separator( $position, 'manage_options' );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ public function get_upsell_nudge() {
* Adds Jetpack menu.
*
* @param int $position The position of the menu item in the menu.
* @param bool $seperator Whether to add a separator before the menu item.
* @param bool $separator Whether to add a separator before the menu item.
*/
public function add_jetpack_menu( $position = 2, $seperator = false ) {
public function add_jetpack_menu( $position = 2, $separator = false ) {
if ( get_option( 'wpcom_admin_interface' ) === 'wp-admin' ) {
parent::add_jetpack_menu( $position, $seperator );
parent::add_jetpack_menu( $position, $separator );
} else {
parent::add_jetpack_menu();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ public function add_cpt_menus() {
* Adds Jetpack menu.
*
* @param int $position The position of the menu item in the menu.
* @param bool $seperator Whether to add a separator before the menu item.
* @param bool $separator Whether to add a separator before the menu item.
*/
public function add_jetpack_menu( $position = 50, $seperator = true ) {
parent::add_jetpack_menu( $position, $seperator );
public function add_jetpack_menu( $position = 50, $separator = true ) {
parent::add_jetpack_menu( $position, $separator );

/* translators: Jetpack sidebar menu item. */
add_submenu_page( 'jetpack', esc_attr__( 'Search', 'jetpack' ), __( 'Search', 'jetpack' ), 'manage_options', 'jetpack-search', admin_url( 'admin.php?page=jetpack-search' ), 4 );
Expand Down

0 comments on commit b25fbc2

Please sign in to comment.