Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

IE8 Bugfixes

  • Loading branch information...
commit e9b2211997662d0e8f8d2092bceb652330f18451 1 parent f5b97d6
maku authored
Showing with 39 additions and 39 deletions.
  1. +2 −2 wp-content/themes/omh-theme/header.php
  2. +37 −37 xmlrpc.php
View
4 wp-content/themes/omh-theme/header.php
@@ -134,7 +134,7 @@
<?php if (is_home()): ?>
<script type = "text/javascript">
-
+
var alertFallback = true;
if (typeof console === "undefined" || typeof console.log === "undefined") {
console = {};
@@ -146,7 +146,7 @@
console.log = function() {};
}
}
-
+
var win = $(window)
$(document).ready(function() {
$('#floatingLogo').hide()
View
74 xmlrpc.php
@@ -17,37 +17,37 @@
// A bug in PHP < 5.2.2 makes $HTTP_RAW_POST_DATA not set by default,
// but we can do it ourself.
-if ( !isset( $HTTP_RAW_POST_DATA ) ) {
- $HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );
+if (!isset($HTTP_RAW_POST_DATA)) {
+ $HTTP_RAW_POST_DATA = file_get_contents('php://input');
}
// fix for mozBlog and other cases where '<?xml' isn't on the very first line
-if ( isset($HTTP_RAW_POST_DATA) )
- $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
+if (isset($HTTP_RAW_POST_DATA))
+ $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);
/** Include the bootstrap for setting up WordPress environment */
include('./wp-load.php');
-if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd
-header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
-?>
-<?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
-<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
- <service>
- <engineName>WordPress</engineName>
- <engineLink>http://wordpress.org/</engineLink>
- <homePageLink><?php bloginfo_rss('url') ?></homePageLink>
- <apis>
- <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
- <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
- <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
- <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
- <api name="Atom" blogID="" preferred="false" apiLink="<?php echo site_url('wp-app.php/service', 'rpc') ?>" />
- </apis>
- </service>
-</rsd>
-<?php
-exit;
+if (isset($_GET['rsd'])) { // http://archipelago.phrasewise.com/rsd
+ header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
+ ?>
+ <?php echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '"?' . '>'; ?>
+ <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
+ <service>
+ <engineName>WordPress</engineName>
+ <engineLink>http://wordpress.org/</engineLink>
+ <homePageLink><?php bloginfo_rss('url') ?></homePageLink>
+ <apis>
+ <api name="WordPress" blogID="1" preferred="true" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
+ <api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
+ <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
+ <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
+ <api name="Atom" blogID="" preferred="false" apiLink="<?php echo site_url('wp-app.php/service', 'rpc') ?>" />
+ </apis>
+ </service>
+ </rsd>
+ <?php
+ exit;
}
include_once(ABSPATH . 'wp-admin/includes/admin.php');
@@ -83,23 +83,23 @@
* @param string $msg Information describing logging reason.
* @return bool Always return true
*/
-function logIO($io,$msg) {
- global $xmlrpc_logging;
- if ($xmlrpc_logging) {
- $fp = fopen("../xmlrpc.log","a+");
- $date = gmdate("Y-m-d H:i:s ");
- $iot = ($io == "I") ? " Input: " : " Output: ";
- fwrite($fp, "\n\n".$date.$iot.$msg);
- fclose($fp);
- }
- return true;
+function logIO($io, $msg) {
+ global $xmlrpc_logging;
+ if ($xmlrpc_logging) {
+ $fp = fopen("../xmlrpc.log", "a+");
+ $date = gmdate("Y-m-d H:i:s ");
+ $iot = ($io == "I") ? " Input: " : " Output: ";
+ fwrite($fp, "\n\n" . $date . $iot . $msg);
+ fclose($fp);
+ }
+ return true;
}
-if ( isset($HTTP_RAW_POST_DATA) )
- logIO("I", $HTTP_RAW_POST_DATA);
+if (isset($HTTP_RAW_POST_DATA))
+ logIO("I", $HTTP_RAW_POST_DATA);
// Make sure wp_die output is XML
-add_filter( 'wp_die_handler', '_xmlrpc_wp_die_filter' );
+add_filter('wp_die_handler', '_xmlrpc_wp_die_filter');
// Allow for a plugin to insert a different class to handle requests.
$wp_xmlrpc_server_class = apply_filters('wp_xmlrpc_server_class', 'wp_xmlrpc_server');
Please sign in to comment.
Something went wrong with that request. Please try again.