WordPress.org

Make WordPress Core

Ticket #25229: export-php.patch

File export-php.patch, 1.1 KB (added by mordauk, 6 years ago)

wp-admin/export.php

  • wp-admin/export.php

     
    9494                $args['content'] = $_GET['content'];
    9595        }
    9696
     97        /**
     98         * The export args.
     99         *
     100         * @since 3.5.0
     101         *
     102         * @param array $args The arguments to send to the exporter.
     103         */
    97104        $args = apply_filters( 'export_args', $args );
    98105
    99106        export_wp( $args );
     
    209215
    210216<?php foreach ( get_post_types( array( '_builtin' => false, 'can_export' => true ), 'objects' ) as $post_type ) : ?>
    211217<p><label><input type="radio" name="content" value="<?php echo esc_attr( $post_type->name ); ?>" /> <?php echo esc_html( $post_type->label ); ?></label></p>
    212 <?php endforeach; ?>
     218<?php endforeach;
    213219
    214 <?php do_action( 'export_filters' ) ?>
     220/**
     221 * Fires after the export filters form.
     222 *
     223 * @since 3.5.0
     224 */
     225do_action( 'export_filters' ) ?>
    215226
    216227<?php submit_button( __('Download Export File') ); ?>
    217228</form>
    218229</div>
    219230
    220 <?php include('admin-footer.php'); ?>
     231<?php include('admin-footer.php'); ?>
     232 No newline at end of file