Plugin Directory

Changeset 1838306


Ignore:
Timestamp:
03/12/2018 12:33:23 AM (7 years ago)
Author:
litefeel
Message:

auto deploy from deploy2wp:https://github.com/litefeel/deploy2wp

Location:
writing-on-github/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • writing-on-github/trunk/lib/request.php

    r1836044 r1838306  
    109109        }
    110110
     111        $this->headers = array();
    111112        if ( function_exists( 'getallheaders' ) ) {
    112 
    113             $this->headers = getallheaders();
    114             return $this->headers;
    115         }
    116         /**
    117          * Nginx and pre 5.4 workaround.
    118          * @see http://www.php.net/manual/en/function.getallheaders.php
    119          */
    120         $this->headers = array();
    121         foreach ( $_SERVER as $name => $value ) {
    122             if ( 'HTTP_' === substr( $name, 0, 5 ) ) {
    123                 $this->headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '_', ' ', substr( $name, 5 ) ) ) ) ) ] = $value;
     113            $headers = getallheaders();
     114            // github webhook
     115            // content-type: application/json
     116            // Expect:
     117            // User-Agent: GitHub-Hookshot/7a71d82
     118            // X-GitHub-Delivery: a331b200-2537-11e8-9d7e-ce0853020b44
     119            // X-GitHub-Event: push
     120            // X-Hub-Signature: sha1=98185ffa2c4684c9a1324c57086709acca9dddc7
     121            foreach ( $headers as $name => $value ) {
     122                $this->headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '-', ' ', $name ) ) ) ) ] = $value;
     123            }
     124        } else {
     125            /**
     126             * Nginx and pre 5.4 workaround.
     127             * @see http://www.php.net/manual/en/function.getallheaders.php
     128             */
     129            foreach ( $_SERVER as $name => $value ) {
     130                if ( 'HTTP_' === substr( $name, 0, 5 ) ) {
     131                    $this->headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '_', ' ', substr( $name, 5 ) ) ) ) ) ] = $value;
     132                }
    124133            }
    125134        }
  • writing-on-github/trunk/readme.txt

    r1836044 r1838306  
    77Requires at least: 3.9 
    88Tested up to: 4.9.4 
    9 Stable tag: 1.8 
     9Stable tag: 1.9 
    1010License: GPLv2 
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    136136== Changelog ==
    137137
     138= 1.9 =
     139
     140* Fixed webhook error on apache server
     141
    138142= 1.8 =
    139143
     
    206210  [1.7]: https://github.com/litefeel/writing-on-github/releases/tag/1.7
    207211  [1.8]: https://github.com/litefeel/writing-on-github/releases/tag/1.8
     212  [1.9]: https://github.com/litefeel/writing-on-github/releases/tag/1.9
  • writing-on-github/trunk/vendor/autoload.php

    r1836044 r1838306  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit4cd77128cdef6e0cbb9a7016878f8015::getLoader();
     7return ComposerAutoloaderInit08110c1eacaf0ad159241b30b6754f00::getLoader();
  • writing-on-github/trunk/vendor/composer/autoload_real.php

    r1836044 r1838306  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit4cd77128cdef6e0cbb9a7016878f8015
     5class ComposerAutoloaderInit08110c1eacaf0ad159241b30b6754f00
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInit4cd77128cdef6e0cbb9a7016878f8015', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit08110c1eacaf0ad159241b30b6754f00', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit4cd77128cdef6e0cbb9a7016878f8015', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit08110c1eacaf0ad159241b30b6754f00', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInit4cd77128cdef6e0cbb9a7016878f8015::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInit08110c1eacaf0ad159241b30b6754f00::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
     
    4949
    5050        if ($useStaticLoader) {
    51             $includeFiles = Composer\Autoload\ComposerStaticInit4cd77128cdef6e0cbb9a7016878f8015::$files;
     51            $includeFiles = Composer\Autoload\ComposerStaticInit08110c1eacaf0ad159241b30b6754f00::$files;
    5252        } else {
    5353            $includeFiles = require __DIR__ . '/autoload_files.php';
    5454        }
    5555        foreach ($includeFiles as $fileIdentifier => $file) {
    56             composerRequire4cd77128cdef6e0cbb9a7016878f8015($fileIdentifier, $file);
     56            composerRequire08110c1eacaf0ad159241b30b6754f00($fileIdentifier, $file);
    5757        }
    5858
     
    6161}
    6262
    63 function composerRequire4cd77128cdef6e0cbb9a7016878f8015($fileIdentifier, $file)
     63function composerRequire08110c1eacaf0ad159241b30b6754f00($fileIdentifier, $file)
    6464{
    6565    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • writing-on-github/trunk/vendor/composer/autoload_static.php

    r1836044 r1838306  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit4cd77128cdef6e0cbb9a7016878f8015
     7class ComposerStaticInit08110c1eacaf0ad159241b30b6754f00
    88{
    99    public static $files = array (
     
    3535    {
    3636        return \Closure::bind(function () use ($loader) {
    37             $loader->classMap = ComposerStaticInit4cd77128cdef6e0cbb9a7016878f8015::$classMap;
     37            $loader->classMap = ComposerStaticInit08110c1eacaf0ad159241b30b6754f00::$classMap;
    3838
    3939        }, null, ClassLoader::class);
  • writing-on-github/trunk/writing-on-github.php

    r1836044 r1838306  
    44 * Plugin URI: https://github.com/litefeel/writing-on-github
    55 * Description: A WordPress plugin to allow you writing on GitHub (or Jekyll site).
    6  * Version: 1.8
     6 * Version: 1.9
    77 * Author:  litefeel
    88 * Author URI: https://www.litefeel.com
Note: See TracChangeset for help on using the changeset viewer.