Make WordPress Core

Changeset 45688


Ignore:
Timestamp:
07/27/2019 02:16:59 PM (5 years ago)
Author:
ocean90
Message:

I18N: Use RTL stylesheets when running from /src.

To run WordPress from /src you have to use the --dev flag which also builds the RTL stylesheets thus the admin notice and force to LTR is no longer required.

See #44492.
Fixes #44865.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-locale.php

    r45029 r45688  
    223223            $this->text_direction = 'rtl';
    224224        }
    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.0
    236      */
    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>';
    240225    }
    241226
Note: See TracChangeset for help on using the changeset viewer.