WordPress.org

Make WordPress Core

Ticket #40972: 40972.0.diff

File 40972.0.diff, 533 bytes (added by westonruter, 4 years ago)
  • src/wp-includes/class-wp-editor.php

    diff --git src/wp-includes/class-wp-editor.php src/wp-includes/class-wp-editor.php
    index 8879797914..8f5625c41f 100644
    final class _WP_Editors { 
    825825                $settings['wpautop'] = false;
    826826                $settings['indent'] = true;
    827827                $settings['elementpath'] = false;
     828                $settings['directionality'] = is_rtl() ? 'rtl' : 'ltr';
    828829
    829830                // In production all plugins are loaded (they are in wp-editor.js.gz)
    830831                // but only these will be initialized by default.