Make WordPress Core

Changeset 30876 for branches/4.1


Ignore:
Timestamp:
12/15/2014 09:50:13 PM (10 years ago)
Author:
johnbillion
Message:

Clarify the behaviour of the wp_editor_set_quality and jpeg_quality filters.

Merges [30874] to the 4.1 branch.

Props DH-Shredder
See #29856

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-includes/class-wp-image-editor.php

    r30788 r30876  
    234234             * Filter the default image compression quality setting.
    235235             *
     236             * Applies only during initial editor instantiation, or when set_quality() is run
     237             * manually without the `$quality` argument.
     238             *
     239             * set_quality() has priority over the filter.
     240             *
    236241             * @since 3.5.0
    237242             *
     
    244249                /**
    245250                 * Filter the JPEG compression quality for backward-compatibility.
     251                 *
     252                 * Applies only during initial editor instantiation, or when set_quality() is run
     253                 * manually without the `$quality` argument.
     254                 *
     255                 * set_quality() has priority over the filter.
    246256                 *
    247257                 * The filter is evaluated under two contexts: 'image_resize', and 'edit_image',
Note: See TracChangeset for help on using the changeset viewer.