Plugin Directory

Changeset 1555793


Ignore:
Timestamp:
12/16/2016 12:04:16 AM (9 years ago)
Author:
cconover
Message:

Fix bug caused by deprecated function call

Location:
featured-image-caption/trunk
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • featured-image-caption/trunk/classes/RestApi.php

    r1399355 r1555793  
    2121    public function register_fields() {
    2222        // Featured image caption data
    23         register_api_field(
     23        register_rest_field(
    2424            'post',
    2525            CCFIC_KEY,
  • featured-image-caption/trunk/featured-image-caption.php

    r1399355 r1555793  
    44Plugin URI: https://christiaanconover.com/code/wp-featured-image-caption?utm_source=wp-featured-image-caption
    55Description: Set a caption for the featured image of a post that can be displayed on your site.
    6 Version: 0.8.5
     6Version: 0.8.6
    77Author: Christiaan Conover
    88Author URI: https://christiaanconover.com?utm_source=wp-featured-image-caption-author
     
    1919define( 'CCFIC_ID', 'ccfic' ); // Plugin ID
    2020define( 'CCFIC_NAME', 'Featured Image Caption' ); // Plugin name
    21 define( 'CCFIC_VERSION', '0.8.5' ); // Plugin version
     21define( 'CCFIC_VERSION', '0.8.6' ); // Plugin version
    2222define( 'CCFIC_WPVER', '3.5' ); // Minimum required version of WordPress
    2323define( 'CCFIC_KEY', 'cc_featured_image_caption' ); // Database key (legacy support, ID now used)
  • featured-image-caption/trunk/readme.txt

    r1399355 r1555793  
    44Tags: image, caption, featured image, shortcode
    55Requires at least: 3.5
    6 Tested up to: 4.5
    7 Stable tag: 0.8.5
     6Tested up to: 4.7
     7Stable tag: 0.8.6
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3333
    3434== Upgrade Notice ==
     35
     36= 0.8.6 =
     37Fix an error thrown due to a deprecated function call for the WP REST API.
    3538
    3639= 0.8.5 =
     
    101104
    102105== Changelog ==
     106
     107= 0.8.6 =
     108Fix an error thrown due to a deprecated function call for the WP REST API.
    103109
    104110= 0.8.5 =
  • featured-image-caption/trunk/vendor/autoload.php

    r1399355 r1555793  
    33// autoload.php @generated by Composer
    44
    5 require_once __DIR__ . '/composer' . '/autoload_real.php';
     5require_once __DIR__ . '/composer/autoload_real.php';
    66
    77return ComposerAutoloaderInitaab6709e267fa9869f9fc1168a2442da::getLoader();
  • featured-image-caption/trunk/vendor/composer/ClassLoader.php

    r1392442 r1555793  
    5454    private $useIncludePath = false;
    5555    private $classMap = array();
    56 
    5756    private $classMapAuthoritative = false;
     57    private $missingClasses = array();
    5858
    5959    public function getPrefixes()
     
    323323            return $this->classMap[$class];
    324324        }
    325         if ($this->classMapAuthoritative) {
     325        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
    326326            return false;
    327327        }
     
    330330
    331331        // Search for Hack files if we are running on HHVM
    332         if ($file === null && defined('HHVM_VERSION')) {
     332        if (false === $file && defined('HHVM_VERSION')) {
    333333            $file = $this->findFileWithExtension($class, '.hh');
    334334        }
    335335
    336         if ($file === null) {
     336        if (false === $file) {
    337337            // Remember that this class does not exist.
    338             return $this->classMap[$class] = false;
     338            $this->missingClasses[$class] = true;
    339339        }
    340340
     
    400400            return $file;
    401401        }
     402
     403        return false;
    402404    }
    403405}
  • featured-image-caption/trunk/vendor/composer/autoload_real.php

    r1399355 r1555793  
    2424        spl_autoload_unregister(array('ComposerAutoloaderInitaab6709e267fa9869f9fc1168a2442da', 'loadClassLoader'));
    2525
    26         $map = require __DIR__ . '/autoload_namespaces.php';
    27         foreach ($map as $namespace => $path) {
    28             $loader->set($namespace, $path);
    29         }
     26        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     27        if ($useStaticLoader) {
     28            require_once __DIR__ . '/autoload_static.php';
    3029
    31         $map = require __DIR__ . '/autoload_psr4.php';
    32         foreach ($map as $namespace => $path) {
    33             $loader->setPsr4($namespace, $path);
    34         }
     30            call_user_func(\Composer\Autoload\ComposerStaticInitaab6709e267fa9869f9fc1168a2442da::getInitializer($loader));
     31        } else {
     32            $map = require __DIR__ . '/autoload_namespaces.php';
     33            foreach ($map as $namespace => $path) {
     34                $loader->set($namespace, $path);
     35            }
    3536
    36         $classMap = require __DIR__ . '/autoload_classmap.php';
    37         if ($classMap) {
    38             $loader->addClassMap($classMap);
     37            $map = require __DIR__ . '/autoload_psr4.php';
     38            foreach ($map as $namespace => $path) {
     39                $loader->setPsr4($namespace, $path);
     40            }
     41
     42            $classMap = require __DIR__ . '/autoload_classmap.php';
     43            if ($classMap) {
     44                $loader->addClassMap($classMap);
     45            }
    3946        }
    4047
Note: See TracChangeset for help on using the changeset viewer.