WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/24/2017 10:24:07 PM (3 years ago)
Author:
johnbillion
Message:

General: Backport PHP 7.1 fixes to the 4.5 branch to avoid fatal errors and warnings.

Props simonvik, ayeshrajans

See #41135

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

  • branches/4.5/src/wp-includes/class-oembed.php

    r37709 r41128  
    222222     */
    223223    public function get_provider( $url, $args = '' ) {
     224        $args = wp_parse_args( $args );
    224225
    225226        $provider = false;
     
    316317     */
    317318    public function get_html( $url, $args = '' ) {
     319        $args = wp_parse_args( $args );
     320
    318321        /**
    319322         * Filters the oEmbed result before any HTTP requests are made.
Note: See TracChangeset for help on using the changeset viewer.