Changeset 45688
- Timestamp:
- 07/27/2019 02:16:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale.php
r45029 r45688 223 223 $this->text_direction = 'rtl'; 224 224 } 225 226 if ( 'rtl' === $this->text_direction && strpos( $GLOBALS['wp_version'], '-src' ) ) {227 $this->text_direction = 'ltr';228 add_action( 'all_admin_notices', array( $this, 'rtl_src_admin_notice' ) );229 }230 }231 232 /**233 * Outputs an admin notice if the /build directory must be used for RTL.234 *235 * @since 3.8.0236 */237 public function rtl_src_admin_notice() {238 /* translators: %s: Name of the directory (build) */239 echo '<div class="error"><p>' . sprintf( __( 'The %s directory of the develop repository must be used for RTL.' ), '<code>build</code>' ) . '</p></div>';240 225 } 241 226
Note: See TracChangeset
for help on using the changeset viewer.