]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/IXR/class-IXR-base64.php
WordPress 4.7
[autoinstalls/wordpress.git] / wp-includes / IXR / class-IXR-base64.php
diff --git a/wp-includes/IXR/class-IXR-base64.php b/wp-includes/IXR/class-IXR-base64.php
new file mode 100644 (file)
index 0000000..910f81b
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * IXR_Base64
+ *
+ * @package IXR
+ * @since 1.5.0
+ */
+class IXR_Base64
+{
+    var $data;
+
+       /**
+        * PHP5 constructor.
+        */
+    function __construct( $data )
+    {
+        $this->data = $data;
+    }
+
+       /**
+        * PHP4 constructor.
+        */
+       public function IXR_Base64( $data ) {
+               self::__construct( $data );
+       }
+
+    function getXml()
+    {
+        return '<base64>'.base64_encode($this->data).'</base64>';
+    }
+}