WordPress.org

Make WordPress Core

Ticket #28087: patch_commit_6cc586831f87.patch

File patch_commit_6cc586831f87.patch, 666 bytes (added by thomasvanderbeek, 6 years ago)

Set paste_webkit_styles to 'none'

  • wp-includes/class-wp-editor.php

    diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php
    index 022882f3a2cfddfde5e0c94cd2724e47aef09393..8b67ca2fbd70fbac81a8e6f14a8179e6e7737847 100644
    a b final class _WP_Editors { 
    473473                                        'entities' => '38,amp,60,lt,62,gt',
    474474                                        'entity_encoding' => 'raw',
    475475                                        'keep_styles' => false,
    476                                         'paste_webkit_styles' => 'font-weight font-style color',
     476                                        'paste_webkit_styles' => 'none',
    477477
    478478                                        // Limit the preview styles in the menu/toolbar
    479479                                        'preview_styles' => 'font-family font-size font-weight font-style text-decoration text-transform',