Skip to content

Commit 4e15d7b

Browse files
authored
Masterbar: Remove unused RTL_Admin_Bar class (#17781)
1 parent 020b7b5 commit 4e15d7b

File tree

2 files changed

+0
-70
lines changed

2 files changed

+0
-70
lines changed

modules/masterbar/masterbar/masterbar.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,6 @@ class_exists( 'Jetpack_AMP_Support' )
157157
// We need to use user's setting here, instead of relying on current blog's text direction.
158158
$this->user_text_direction = $this->user_data['text_direction'];
159159

160-
if ( $this->is_rtl() ) {
161-
// Extend core WP_Admin_Bar class in order to add rtl styles.
162-
add_filter( 'wp_admin_bar_class', array( $this, 'get_rtl_admin_bar_class' ) );
163-
}
164160
add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
165161

166162
add_action( 'wp_before_admin_bar_render', array( $this, 'replace_core_masterbar' ), 99999 );
@@ -224,13 +220,6 @@ public function maybe_logout_user_from_wpcom( $redirect_to, $requested_redirect_
224220
return $redirect_to;
225221
}
226222

227-
/**
228-
* Get class name for RTL sites.
229-
*/
230-
public function get_rtl_admin_bar_class() {
231-
return __NAMESPACE__ . '\RTL_Admin_Bar';
232-
}
233-
234223
/**
235224
* Adds CSS classes to admin body tag.
236225
*

modules/masterbar/masterbar/rtl-admin-bar.php

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)