scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WordPress 4.3
[autoinstalls/wordpress.git]
/
wp-admin
/
includes
/
export.php
diff --git
a/wp-admin/includes/export.php
b/wp-admin/includes/export.php
index cd50e61bb196b654d7767377ebdf30f034a1c331..98989324e1a0d22f2931100688b8e7f606af52c1 100644
(file)
--- a/
wp-admin/includes/export.php
+++ b/
wp-admin/includes/export.php
@@
-20,6
+20,9
@@
define( 'WXR_VERSION', '1.2' );
*
* @since 2.1.0
*
*
* @since 2.1.0
*
+ * @global wpdb $wpdb
+ * @global WP_Post $post
+ *
* @param array $args Filters defining what should be included in the export.
*/
function export_wp( $args = array() ) {
* @param array $args Filters defining what should be included in the export.
*/
function export_wp( $args = array() ) {
@@
-130,9
+133,9
@@
function export_wp( $args = array() ) {
* @return string
*/
function wxr_cdata( $str ) {
* @return string
*/
function wxr_cdata( $str ) {
- if (
seems_utf8( $str ) == false )
+ if (
! seems_utf8( $str ) ) {
$str = utf8_encode( $str );
$str = utf8_encode( $str );
-
+ }
// $str = ent2ncr(esc_html($str));
$str = '<![CDATA[' . str_replace( ']]>', ']]]]><![CDATA[>', $str ) . ']]>';
// $str = ent2ncr(esc_html($str));
$str = '<![CDATA[' . str_replace( ']]>', ']]]]><![CDATA[>', $str ) . ']]>';
@@
-244,6
+247,8
@@
function export_wp( $args = array() ) {
*
* @since 3.1.0
*
*
* @since 3.1.0
*
+ * @global wpdb $wpdb
+ *
* @param array $post_ids Array of post IDs to filter the query by. Optional.
*/
function wxr_authors_list( array $post_ids = null ) {
* @param array $post_ids Array of post IDs to filter the query by. Optional.
*/
function wxr_authors_list( array $post_ids = null ) {
@@
-310,6
+315,12
@@
function export_wp( $args = array() ) {
}
}
}
}
+ /**
+ *
+ * @param bool $return_me
+ * @param string $meta_key
+ * @return bool
+ */
function wxr_filter_postmeta( $return_me, $meta_key ) {
if ( '_edit_lock' == $meta_key )
$return_me = true;
function wxr_filter_postmeta( $return_me, $meta_key ) {
if ( '_edit_lock' == $meta_key )
$return_me = true;
@@
-375,6
+386,9
@@
function export_wp( $args = array() ) {
?>
<?php if ( $post_ids ) {
?>
<?php if ( $post_ids ) {
+ /**
+ * @global WP_Query $wp_query
+ */
global $wp_query;
// Fake being in the loop.
global $wp_query;
// Fake being in the loop.