Make WordPress Core

Ticket #36835: 36835.patch

File 36835.patch, 29.2 KB (added by ocean90, 8 years ago)
  • src/wp-admin/admin.php

     
    175175        if ( ! $page_hook = get_plugin_page_hook($plugin_page, $the_parent) ) {
    176176                $page_hook = get_plugin_page_hook($plugin_page, $plugin_page);
    177177
    178                 // Backwards compatibility for plugins using add_management_page().
     178                // Backward compatibility for plugins using add_management_page().
    179179                if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'tools.php') ) {
    180180                        // There could be plugin specific params on the URL, so we need the whole query string
    181181                        if ( !empty($_SERVER[ 'QUERY_STRING' ]) )
  • src/wp-admin/includes/class-wp-list-table.php

     
    166166        }
    167167
    168168        /**
    169          * Make private properties readable for backwards compatibility.
     169         * Make private properties readable for backward compatibility.
    170170         *
    171171         * @since 4.0.0
    172172         * @access public
     
    181181        }
    182182
    183183        /**
    184          * Make private properties settable for backwards compatibility.
     184         * Make private properties settable for backward compatibility.
    185185         *
    186186         * @since 4.0.0
    187187         * @access public
     
    197197        }
    198198
    199199        /**
    200          * Make private properties checkable for backwards compatibility.
     200         * Make private properties checkable for backward compatibility.
    201201         *
    202202         * @since 4.0.0
    203203         * @access public
     
    212212        }
    213213
    214214        /**
    215          * Make private properties un-settable for backwards compatibility.
     215         * Make private properties un-settable for backward compatibility.
    216216         *
    217217         * @since 4.0.0
    218218         * @access public
     
    226226        }
    227227
    228228        /**
    229          * Make private/protected methods readable for backwards compatibility.
     229         * Make private/protected methods readable for backward compatibility.
    230230         *
    231231         * @since 4.0.0
    232232         * @access public
  • src/wp-admin/includes/class-wp-screen.php

     
    420420        /**
    421421         * Sets the old string-based contextual help for the screen.
    422422         *
    423          * For backwards compatibility.
     423         * For backward compatibility.
    424424         *
    425425         * @since 3.3.0
    426426         *
     
    722722        /**
    723723         * Render the screen's help section.
    724724         *
    725          * This will trigger the deprecated filters for backwards compatibility.
     725         * This will trigger the deprecated filters for backward compatibility.
    726726         *
    727727         * @since 3.3.0
    728728         *
  • src/wp-admin/includes/plugin.php

     
    487487 * be activated only as a network wide plugin. The plugin would also work
    488488 * when Multisite is not enabled.
    489489 *
    490  * Checks for "Site Wide Only: true" for backwards compatibility.
     490 * Checks for "Site Wide Only: true" for backward compatibility.
    491491 *
    492492 * @since 3.0.0
    493493 *
  • src/wp-admin/js/common.js

     
    394394        }
    395395
    396396        /*
    397          * The `.below-h2` class is here just for backwards compatibility with plugins
     397         * The `.below-h2` class is here just for backward compatibility with plugins
    398398         * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570.
    399399         */
    400400        $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap h1, .wrap h2' ).first() );
  • src/wp-admin/js/password-strength-meter.js

     
    7070                }
    7171        };
    7272
    73         // Backwards compatibility.
     73        // Backward compatibility.
    7474        passwordStrength = wp.passwordStrength.meter;
    75 })(jQuery);
    76  No newline at end of file
     75})(jQuery);
  • src/wp-admin/js/wp-fullscreen-stub.js

     
    11/**
    2  * Distraction-Free Writing (wp-fullscreen) backwards compatibility stub.
     2 * Distraction-Free Writing (wp-fullscreen) backward compatibility stub.
    33 * Todo: remove at the end of 2016.
    44 *
    55 * Original was deprecated in 4.1, removed in 4.3.
  • src/wp-admin/theme-install.php

     
    118118        /**
    119119         * Filter the tabs shown on the Add Themes screen.
    120120         *
    121          * This filter is for backwards compatibility only, for the suppression
     121         * This filter is for backward compatibility only, for the suppression
    122122         * of the upload tab.
    123123         *
    124124         * @since 2.8.0
  • src/wp-includes/author-template.php

     
    4545 * still use the old behavior will also pass the value from get_the_author().
    4646 *
    4747 * The normal, expected behavior of this function is to echo the author and not
    48  * return it. However, backwards compatibility has to be maintained.
     48 * return it. However, backward compatibility has to be maintained.
    4949 *
    5050 * @since 0.71
    5151 * @see get_the_author()
  • src/wp-includes/cache.php

     
    344344        private $multisite;
    345345
    346346        /**
    347          * Makes private properties readable for backwards compatibility.
     347         * Makes private properties readable for backward compatibility.
    348348         *
    349349         * @since 4.0.0
    350350         * @access public
     
    357357        }
    358358
    359359        /**
    360          * Makes private properties settable for backwards compatibility.
     360         * Makes private properties settable for backward compatibility.
    361361         *
    362362         * @since 4.0.0
    363363         * @access public
     
    371371        }
    372372
    373373        /**
    374          * Makes private properties checkable for backwards compatibility.
     374         * Makes private properties checkable for backward compatibility.
    375375         *
    376376         * @since 4.0.0
    377377         * @access public
     
    384384        }
    385385
    386386        /**
    387          * Makes private properties un-settable for backwards compatibility.
     387         * Makes private properties un-settable for backward compatibility.
    388388         *
    389389         * @since 4.0.0
    390390         * @access public
  • src/wp-includes/category.php

     
    7777 * If you look at get_term(), then both types will be passed through several
    7878 * filters and finally sanitized based on the $filter parameter value.
    7979 *
    80  * The category will converted to maintain backwards compatibility.
     80 * The category will converted to maintain backward compatibility.
    8181 *
    8282 * @since 1.5.1
    8383 *
  • src/wp-includes/certificates/ca-bundle.crt

     
    33##
    44## Certificate data from Mozilla as of: Wed Sep 16 08:58:11 2015
    55## Includes a WordPress Modification - We include the 'legacy' 1024bit certificates
    6 ## for backwards compatibility. See https://core.trac.wordpress.org/ticket/34935#comment:10
     6## for backward compatibility. See https://core.trac.wordpress.org/ticket/34935#comment:10
    77##
    88## This is a bundle of X.509 certificates of public Certificate Authorities
    99## (CA). These were automatically extracted from Mozilla's root certificates
  • src/wp-includes/class-oembed.php

     
    3838        public static $early_providers = array();
    3939
    4040        /**
    41          * A list of private/protected methods, used for backwards compatibility.
     41         * A list of private/protected methods, used for backward compatibility.
    4242         *
    4343         * @since 4.2.0
    4444         * @access private
     
    192192        }
    193193
    194194        /**
    195          * Exposes private/protected methods for backwards compatibility.
     195         * Exposes private/protected methods for backward compatibility.
    196196         *
    197197         * @since 4.0.0
    198198         * @access public
  • src/wp-includes/class-wp-comment-query.php

     
    125125        public $max_num_pages = 0;
    126126
    127127        /**
    128          * Make private/protected methods readable for backwards compatibility.
     128         * Make private/protected methods readable for backward compatibility.
    129129         *
    130130         * @since 4.0.0
    131131         * @access public
  • src/wp-includes/class-wp-editor.php

     
    5454         *     @type string     $editor_class      Extra classes to add to the editor textarea element. Default empty.
    5555         *     @type bool       $teeny             Whether to output the minimal editor config. Examples include
    5656         *                                         Press This and the Comment editor. Default false.
    57          *     @type bool       $dfw               Deprecated in 4.1. Since 4.3 used only to enqueue wp-fullscreen-stub.js for backwards compatibility.
     57         *     @type bool       $dfw               Deprecated in 4.1. Since 4.3 used only to enqueue wp-fullscreen-stub.js for backward compatibility.
    5858         *     @type bool|array $tinymce           Whether to load TinyMCE. Can be used to pass settings directly to
    5959         *                                         TinyMCE using an array. Default true.
    6060         *     @type bool|array $quicktags         Whether to load Quicktags. Can be used to pass settings directly to
  • src/wp-includes/class-wp-http-requests-response.php

     
    144144        /**
    145145         * Check if an ArrayAccess offset exists.
    146146         *
    147          * This is for backwards compatibility for array access.
     147         * This is for backward compatibility for array access.
    148148         *
    149149         * @param string|int $key Array offset.
    150150         * @return bool True if the offset exists, false otherwise.
     
    157157        /**
    158158         * Get an ArrayAccess value.
    159159         *
    160          * This is for backwards compatibility for array access.
     160         * This is for backward compatibility for array access.
    161161         *
    162162         * @param string|int $key Array offset to get.
    163163         * @return mixed Value if the key is a valid offset, null if invalid.
     
    189189        /**
    190190         * Set an ArrayAccess value.
    191191         *
    192          * This is for backwards compatibility for array access.
     192         * This is for backward compatibility for array access.
    193193         *
    194194         * @param string|int $key Array offset to set.
    195195         * @param mixed $value Value to set.
     
    219219        /**
    220220         * Unset an ArrayAccess value.
    221221         *
    222          * This is for backwards compatibility for array access.
     222         * This is for backward compatibility for array access.
    223223         *
    224224         * @param string|int $key Array offset to remove.
    225225         */
  • src/wp-includes/class-wp-http-streams.php

     
    415415/**
    416416 * Deprecated HTTP Transport method which used fsockopen.
    417417 *
    418  * This class is not used, and is included for backwards compatibility only.
     418 * This class is not used, and is included for backward compatibility only.
    419419 * All code should make use of WP_Http directly through its API.
    420420 *
    421421 * @see WP_HTTP::request
     
    424424 * @deprecated 3.7.0 Please use WP_HTTP::request() directly
    425425 */
    426426class WP_HTTP_Fsockopen extends WP_HTTP_Streams {
    427         // For backwards compatibility for users who are using the class directly.
     427        // For backward compatibility for users who are using the class directly.
    428428}
  • src/wp-includes/class-wp-image-editor-imagick.php

     
    343343                         * Use resizeImage() when it's available and a valid filter value is set.
    344344                         * Otherwise, fall back to the scaleImage() method for resizing, which
    345345                         * results in better image quality over resizeImage() with default filter
    346                          * settings and retains backwards compatibility with pre 4.5 functionality.
     346                         * settings and retains backward compatibility with pre 4.5 functionality.
    347347                         */
    348348                        if ( is_callable( array( $this->image, 'resizeImage' ) ) && $filter ) {
    349349                                $this->image->setOption( 'filter:support', '2.0' );
  • src/wp-includes/class-wp-image-editor.php

     
    276276                        }
    277277                }
    278278
    279                 // Allow 0, but squash to 1 due to identical images in GD, and for backwards compatibility.
     279                // Allow 0, but squash to 1 due to identical images in GD, and for backward compatibility.
    280280                if ( 0 === $quality ) {
    281281                        $quality = 1;
    282282                }
  • src/wp-includes/class-wp-rewrite.php

     
    17431743         * }
    17441744         */
    17451745        public function add_permastruct( $name, $struct, $args = array() ) {
    1746                 // Backwards compatibility for the old parameters: $with_front and $ep_mask.
     1746                // Backward compatibility for the old parameters: $with_front and $ep_mask.
    17471747                if ( ! is_array( $args ) )
    17481748                        $args = array( 'with_front' => $args );
    17491749                if ( func_num_args() == 4 )
  • src/wp-includes/class-wp-roles.php

     
    7979        }
    8080
    8181        /**
    82          * Make private/protected methods readable for backwards compatibility.
     82         * Make private/protected methods readable for backward compatibility.
    8383         *
    8484         * @since 4.0.0
    8585         * @access public
  • src/wp-includes/class-wp-theme.php

     
    448448                        case 'Name' :
    449449                        case 'Title' :
    450450                                // See note above about using translated data. get() is not ideal.
    451                                 // It is only for backwards compatibility. Use display().
     451                                // It is only for backward compatibility. Use display().
    452452                                return $this->get('Name');
    453453                        case 'Author' :
    454454                                return $this->display( 'Author');
  • src/wp-includes/class-wp-user-query.php

     
    736736        }
    737737
    738738        /**
    739          * Make private properties readable for backwards compatibility.
     739         * Make private properties readable for backward compatibility.
    740740         *
    741741         * @since 4.0.0
    742742         * @access public
     
    751751        }
    752752
    753753        /**
    754          * Make private properties settable for backwards compatibility.
     754         * Make private properties settable for backward compatibility.
    755755         *
    756756         * @since 4.0.0
    757757         * @access public
     
    767767        }
    768768
    769769        /**
    770          * Make private properties checkable for backwards compatibility.
     770         * Make private properties checkable for backward compatibility.
    771771         *
    772772         * @since 4.0.0
    773773         * @access public
     
    782782        }
    783783
    784784        /**
    785          * Make private properties un-settable for backwards compatibility.
     785         * Make private properties un-settable for backward compatibility.
    786786         *
    787787         * @since 4.0.0
    788788         * @access public
     
    796796        }
    797797
    798798        /**
    799          * Make private/protected methods readable for backwards compatibility.
     799         * Make private/protected methods readable for backward compatibility.
    800800         *
    801801         * @since 4.0.0
    802802         * @access public
  • src/wp-includes/class-wp-user.php

     
    242242        }
    243243
    244244        /**
    245          * Makes private/protected methods readable for backwards compatibility.
     245         * Makes private/protected methods readable for backward compatibility.
    246246         *
    247247         * @since 4.3.0
    248248         * @access public
  • src/wp-includes/class-wp-walker.php

     
    139139                //display this element
    140140                $this->has_children = ! empty( $children_elements[ $id ] );
    141141                if ( isset( $args[0] ) && is_array( $args[0] ) ) {
    142                         $args[0]['has_children'] = $this->has_children; // Backwards compatibility.
     142                        $args[0]['has_children'] = $this->has_children; // Backward compatibility.
    143143                }
    144144
    145145                $cb_args = array_merge( array(&$output, $element, $depth), $args);
     
    386386         *
    387387         * @since 2.7.0
    388388         * @access public
    389          * 
     389         *
    390390         * @param array $elements Elements to list.
    391391         * @return int Number of root elements.
    392392         */
  • src/wp-includes/class-wp-xmlrpc-server.php

     
    171171        }
    172172
    173173        /**
    174          * Make private/protected methods readable for backwards compatibility.
     174         * Make private/protected methods readable for backward compatibility.
    175175         *
    176176         * @since 4.0.0
    177177         * @access public
  • src/wp-includes/deprecated.php

     
    20852085}
    20862086
    20872087/**
    2088  * Register widget for sidebar with backwards compatibility.
     2088 * Register widget for sidebar with backward compatibility.
    20892089 *
    20902090 * Allows $name to be an array that accepts either three elements to grab the
    20912091 * first element and the third for the name or just uses the first element of
    20922092 * the array for the name.
    20932093 *
    20942094 * Passes to {@link wp_register_sidebar_widget()} after argument list and
    2095  * backwards compatibility is complete.
     2095 * backward compatibility is complete.
    20962096 *
    20972097 * @since 2.2.0
    20982098 * @deprecated 2.8.0 Use wp_register_sidebar_widget()
  • src/wp-includes/formatting.php

     
    934934
    935935        $string = @htmlspecialchars( $string, $quote_style, $charset, $double_encode );
    936936
    937         // Backwards compatibility
     937        // Backward compatibility
    938938        if ( 'single' === $_quote_style )
    939939                $string = str_replace( "'", ''', $string );
    940940
  • src/wp-includes/general-template.php

     
    10741074 * or the page title. However, it is mostly common sense to have the blog title
    10751075 * to the right with most browsers supporting tabs. You can achieve this by
    10761076 * using the seplocation parameter and setting the value to 'right'. This change
    1077  * was introduced around 2.5.0, in case backwards compatibility of themes is
     1077 * was introduced around 2.5.0, in case backward compatibility of themes is
    10781078 * important.
    10791079 *
    10801080 * @since 1.0.0
  • src/wp-includes/load.php

     
    331331                         */
    332332                        define( 'WP_LANG_DIR', WP_CONTENT_DIR . '/languages' );
    333333                        if ( !defined( 'LANGDIR' ) ) {
    334                                 // Old static relative path maintained for limited backwards compatibility - won't work in some cases
     334                                // Old static relative path maintained for limited backward compatibility - won't work in some cases
    335335                                define( 'LANGDIR', 'wp-content/languages' );
    336336                        }
    337337                } else {
     
    344344                         */
    345345                        define( 'WP_LANG_DIR', ABSPATH . WPINC . '/languages' );
    346346                        if ( !defined( 'LANGDIR' ) ) {
    347                                 // Old relative path maintained for backwards compatibility
     347                                // Old relative path maintained for backward compatibility
    348348                                define( 'LANGDIR', WPINC . '/languages' );
    349349                        }
    350350                }
  • src/wp-includes/locale.php

     
    332332        }
    333333
    334334        /**
    335          * Global variables are deprecated. For backwards compatibility only.
     335         * Global variables are deprecated. For backward compatibility only.
    336336         *
    337          * @deprecated For backwards compatibility only.
     337         * @deprecated For backward compatibility only.
    338338         * @access private
    339339         *
    340340         * @global array $weekday
  • src/wp-includes/query.php

     
    41234123        }
    41244124
    41254125        /**
    4126          * Make private properties readable for backwards compatibility.
     4126         * Make private properties readable for backward compatibility.
    41274127         *
    41284128         * @since 4.0.0
    41294129         * @access public
     
    41384138        }
    41394139
    41404140        /**
    4141          * Make private properties checkable for backwards compatibility.
     4141         * Make private properties checkable for backward compatibility.
    41424142         *
    41434143         * @since 4.0.0
    41444144         * @access public
     
    41534153        }
    41544154
    41554155        /**
    4156          * Make private/protected methods readable for backwards compatibility.
     4156         * Make private/protected methods readable for backward compatibility.
    41574157         *
    41584158         * @since 4.0.0
    41594159         * @access public
  • src/wp-includes/rest-api/class-wp-rest-response.php

     
    293293                 *
    294294                 * Well-behaved clients should expand and normalise these back to their
    295295                 * full URI relation, however some naive clients may not resolve these
    296                  * correctly, so adding new CURIEs may break backwards compatibility.
     296                 * correctly, so adding new CURIEs may break backward compatibility.
    297297                 *
    298298                 * @since 4.5.0
    299299                 *
  • src/wp-includes/rewrite.php

     
    202202function add_permastruct( $name, $struct, $args = array() ) {
    203203        global $wp_rewrite;
    204204
    205         // backwards compatibility for the old parameters: $with_front and $ep_mask
     205        // backward compatibility for the old parameters: $with_front and $ep_mask
    206206        if ( ! is_array( $args ) )
    207207                $args = array( 'with_front' => $args );
    208208        if ( func_num_args() == 4 )
  • src/wp-includes/taxonomy.php

     
    1414 * Creates the initial taxonomies.
    1515 *
    1616 * This function fires twice: in wp-settings.php before plugins are loaded (for
    17  * backwards compatibility reasons), and again on the {@see 'init'} action. We must
     17 * backward compatibility reasons), and again on the {@see 'init'} action. We must
    1818 * avoid registering rewrite rules before the {@see 'init'} action.
    1919 *
    2020 * @since 2.8.0
     
    21972197        $defaults = array('hide_empty' => false);
    21982198        $args = wp_parse_args($args, $defaults);
    21992199
    2200         // backwards compatibility
     2200        // backward compatibility
    22012201        if ( isset($args['ignore_empty']) ) {
    22022202                $args['hide_empty'] = $args['ignore_empty'];
    22032203                unset($args['ignore_empty']);
  • src/wp-includes/theme-compat/comments.php

     
    44 * @subpackage Theme_Compat
    55 * @deprecated 3.0
    66 *
    7  * This file is here for Backwards compatibility with old themes and will be removed in a future version
     7 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 *
    99 */
    1010_deprecated_file(
  • src/wp-includes/theme-compat/footer.php

     
    44 * @subpackage Theme_Compat
    55 * @deprecated 3.0
    66 *
    7  * This file is here for Backwards compatibility with old themes and will be removed in a future version
     7 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 *
    99 */
    1010_deprecated_file(
  • src/wp-includes/theme-compat/header.php

     
    44 * @subpackage Theme_Compat
    55 * @deprecated 3.0
    66 *
    7  * This file is here for Backwards compatibility with old themes and will be removed in a future version
     7 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 *
    99 */
    1010_deprecated_file(
  • src/wp-includes/theme-compat/sidebar.php

     
    44 * @subpackage Theme_Compat
    55 * @deprecated 3.0
    66 *
    7  * This file is here for Backwards compatibility with old themes and will be removed in a future version
     7 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 *
    99 */
    1010_deprecated_file(
  • src/wp-includes/theme.php

     
    664664 * Switches the theme.
    665665 *
    666666 * Accepts one argument: $stylesheet of the theme. It also accepts an additional function signature
    667  * of two arguments: $template then $stylesheet. This is for backwards compatibility.
     667 * of two arguments: $template then $stylesheet. This is for backward compatibility.
    668668 *
    669669 * @since 2.5.0
    670670 *
     
    16341634                        // the constant is always accurate (and is not defined later,  overriding our value).
    16351635                        // As stated above, the first value wins.
    16361636                        // Once we get to wp_loaded (just-in-time), define any constants we haven't already.
    1637                         // Constants are lame. Don't reference them. This is just for backwards compatibility.
     1637                        // Constants are lame. Don't reference them. This is just for backward compatibility.
    16381638
    16391639                        if ( defined( 'NO_HEADER_TEXT' ) )
    16401640                                $args[0]['header-text'] = ! NO_HEADER_TEXT;
  • src/wp-includes/wp-db.php

     
    685685        }
    686686
    687687        /**
    688          * Magic function, for backwards compatibility.
     688         * Magic function, for backward compatibility.
    689689         *
    690690         * @since 3.5.0
    691691         *
     
    705705        }
    706706
    707707        /**
    708          * Magic function, for backwards compatibility.
     708         * Magic function, for backward compatibility.
    709709         *
    710710         * @since 3.5.0
    711711         *
     
    718718        }
    719719
    720720        /**
    721          * Magic function, for backwards compatibility.
     721         * Magic function, for backward compatibility.
    722722         *
    723723         * @since 3.5.0
    724724         *
  • src/wp-includes/wp-diff.php

     
    458458        }
    459459
    460460        /**
    461          * Make private properties readable for backwards compatibility.
     461         * Make private properties readable for backward compatibility.
    462462         *
    463463         * @since 4.0.0
    464464         * @access public
     
    473473        }
    474474
    475475        /**
    476          * Make private properties settable for backwards compatibility.
     476         * Make private properties settable for backward compatibility.
    477477         *
    478478         * @since 4.0.0
    479479         * @access public
     
    489489        }
    490490
    491491        /**
    492          * Make private properties checkable for backwards compatibility.
     492         * Make private properties checkable for backward compatibility.
    493493         *
    494494         * @since 4.0.0
    495495         * @access public
     
    504504        }
    505505
    506506        /**
    507          * Make private properties un-settable for backwards compatibility.
     507         * Make private properties un-settable for backward compatibility.
    508508         *
    509509         * @since 4.0.0
    510510         * @access public