Subir ajustes de acordeon y SEO
This commit is contained in:
@@ -1722,9 +1722,10 @@ class WP_Import extends WP_Importer {
|
||||
*/
|
||||
public function is_valid_meta_key( $key ) {
|
||||
// skip attachment metadata since we'll regenerate it from scratch
|
||||
// skip _wp_attachment_edit_root_id since source attachment IDs are not remapped
|
||||
// skip _wp_font_face_file since the font file it names is not imported
|
||||
// skip _edit_lock as not relevant for import
|
||||
if ( in_array( $key, array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_font_face_file', '_edit_lock' ), true ) ) {
|
||||
if ( in_array( $key, array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_attachment_edit_root_id', '_wp_font_face_file', '_edit_lock' ), true ) ) {
|
||||
return false;
|
||||
}
|
||||
return $key;
|
||||
|
||||
@@ -5,7 +5,7 @@ Tags: importer, wordpress
|
||||
Requires at least: 5.2
|
||||
Tested up to: 6.8
|
||||
Requires PHP: 7.2
|
||||
Stable tag: 0.9.6
|
||||
Stable tag: 0.9.7
|
||||
License: GPLv2 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
@@ -40,6 +40,9 @@ If you would prefer to do things manually then follow these instructions:
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 0.9.7 =
|
||||
* Skip the `_wp_attachment_edit_root_id` meta key on import. It stores an attachment ID from the source site, and attachment IDs change on import, so the imported value could point at an unrelated attachment on the destination site.
|
||||
|
||||
= 0.9.6 =
|
||||
* Skip the `_wp_font_face_file` meta key on import. Font attachments regenerate this meta locally, and the imported value pointed at a file path from the source site.
|
||||
* Prefix bundled vendor namespaces (`Rowbot\URL`, `Brick\Math`, `Psr\Log`, and others) with `VendorPrefix\` to avoid class redefinition errors when another plugin bundles the same libraries.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* Description: Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file.
|
||||
* Author: wordpressdotorg
|
||||
* Author URI: https://wordpress.org/
|
||||
* Version: 0.9.6
|
||||
* Version: 0.9.7
|
||||
* Requires at least: 5.2
|
||||
* Requires PHP: 7.2
|
||||
* Text Domain: wordpress-importer
|
||||
|
||||
Reference in New Issue
Block a user