Make WordPress Core

Ticket #45857: 45857-2.patch

File 45857-2.patch, 6.9 KB (added by samanehmirrajabi, 6 years ago)
  • wp-admin/includes/file.php

     
    22072207        }
    22082208
    22092209        $title = sprintf(
    2210                 /* translators: %s: user's e-mail address */
     2210                /* translators: %s: user's email address */
    22112211                __( 'Personal Data Export for %s' ),
    22122212                $email_address
    22132213        );
  • wp-includes/class-json.php

     
    1515 * ideal data-interchange language.
    1616 *
    1717 * This package provides a simple encoder and decoder for JSON notation. It
    18  * is intended for use with client-side Javascript applications that make
     18 * is intended for use with client-side JavaScript applications that make
    1919 * use of HTTPRequest to perform server communication functions - data can
    20  * be encoded into JSON notation for use in a client-side javascript, or
    21  * decoded from incoming Javascript requests. JSON format is native to
    22  * Javascript, and can be directly eval()'ed with no further parsing
     20 * be encoded into JSON notation for use in a client-side javaScript, or
     21 * decoded from incoming JavaScript requests. JSON format is native to
     22 * JavaScript, and can be directly eval()'ed with no further parsing
    2323 * overhead
    2424 *
    2525 * All strings should be in ASCII or UTF-8 format!
  • wp-includes/class-wp-customize-manager.php

     
    36473647         *  @type string       $capability            Capability required for the setting. Default 'edit_theme_options'
    36483648         *  @type string|array $theme_supports        Theme features required to support the panel. Default is none.
    36493649         *  @type string       $default               Default value for the setting. Default is empty string.
    3650          *  @type string       $transport             Options for rendering the live preview of changes in Theme Customizer.
     3650         *  @type string       $transport             Options for rendering the live preview of changes in Customizer.
    36513651         *                                            Using 'refresh' makes the change visible by reloading the whole preview.
    36523652         *                                            Using 'postMessage' allows a custom JavaScript to handle live changes.
    36533653         * @link https://developer.wordpress.org/themes/customize-api
  • wp-includes/class-wp-customize-setting.php

     
    6666        public $default = '';
    6767
    6868        /**
    69          * Options for rendering the live preview of changes in Theme Customizer.
     69         * Options for rendering the live preview of changes in Customizer.
    7070         *
    71          * Set this value to 'postMessage' to enable a custom Javascript handler to render changes to this setting
     71         * Set this value to 'postMessage' to enable a custom JavaScript handler to render changes to this setting
    7272         * as opposed to reloading the whole page.
    7373         *
    7474         * @link https://developer.wordpress.org/themes/customize-api
  • wp-includes/class-wp-site.php

     
    315315                if ( false === $details ) {
    316316
    317317                        switch_to_blog( $this->blog_id );
    318                         // Create a raw copy of the object for backwards compatibility with the filter below.
     318                        // Create a raw copy of the object for backward compatibility with the filter below.
    319319                        $details = new stdClass();
    320320                        foreach ( get_object_vars( $this ) as $key => $value ) {
    321321                                $details->$key = $value;
  • wp-includes/media.php

     
    733733                        $data = array_shift( $candidates );
    734734                        /*
    735735                        * When the size requested is smaller than the thumbnail dimensions, we
    736                         * fall back to the thumbnail size to maintain backwards compatibility with
     736                        * fall back to the thumbnail size to maintain backward compatibility with
    737737                        * pre 4.6 versions of WordPress.
    738738                        */
    739739                } elseif ( ! empty( $imagedata['sizes']['thumbnail'] ) && $imagedata['sizes']['thumbnail']['width'] >= $size[0] && $imagedata['sizes']['thumbnail']['width'] >= $size[1] ) {
  • wp-includes/script-loader.php

     
    10831083        $scripts->add( 'jquery-table-hotkeys', "/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array( 'jquery', 'jquery-hotkeys' ), false, 1 );
    10841084        $scripts->add( 'jquery-touch-punch', '/wp-includes/js/jquery/jquery.ui.touch-punch.js', array( 'jquery-ui-widget', 'jquery-ui-mouse' ), '0.2.2', 1 );
    10851085
    1086         // Not used any more, registered for backwards compatibility.
     1086        // Not used any more, registered for backward compatibility.
    10871087        $scripts->add( 'suggest', "/wp-includes/js/jquery/suggest$suffix.js", array( 'jquery' ), '1.1-20110113', 1 );
    10881088
    10891089        // Masonry v2 depended on jQuery. v3 does not. The older jquery-masonry handle is a shiv.
  • wp-includes/theme.php

     
    32793279                 * it is now a persistent changeset, a long-lived draft, and so any
    32803280                 * associated auto-draft posts should likewise transition into having a draft
    32813281                 * status. These drafts will be treated differently than regular drafts in
    3282                  * that they will be tied to the given changeset. The publish metabox is
     3282                 * that they will be tied to the given changeset. The publish meta box is
    32833283                 * replaced with a notice about how the post is part of a set of customized changes
    32843284                 * which will be published when the changeset is published.
    32853285                 */
  • wp-includes/wp-db.php

     
    13351335                 * If a %s placeholder already has quotes around it, removing the existing quotes and re-inserting them
    13361336                 * ensures the quotes are consistent.
    13371337                 *
    1338                  * For backwards compatibility, this is only applied to %s, and not to placeholders like %1$s, which are frequently
     1338                 * For backward compatibility, this is only applied to %s, and not to placeholders like %1$s, which are frequently
    13391339                 * used in the middle of longer strings, or as table name placeholders.
    13401340                 */
    13411341                $query = str_replace( "'%s'", '%s', $query ); // Strip any existing single quotes.