{"id":27729,"date":"2014-02-09T18:43:28","date_gmt":"2014-02-09T18:43:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/fix-my-posts\/"},"modified":"2014-03-14T19:03:48","modified_gmt":"2014-03-14T19:03:48","slug":"fix-my-posts","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fix-my-posts\/","author":13660506,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"trunk","tested":"3.7.41","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Fix my posts!","header_author":"Philipp Stracker","header_description":"","assets_banners_color":"","last_updated":"2014-03-14 19:03:48","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=5A98CHL224QG6","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/fix-my-posts","header_author_uri":"http:\/\/www.stracker.net\/","rating":3,"author_block_rating":0,"active_installs":20,"downloads":3927,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>(no special notes)<\/p>"},"ratings":{"1":"3","2":0,"3":0,"4":0,"5":"3"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"854361","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"875571","resolution":"2","location":"assets"}},"screenshots":{"1":"<p>That's the plugin screen. Nothing fancy, just a button and a progress bar...<\/p>","2":"<p><strong>New in 1.2<\/strong>: A repair log and a custom-repair hook!<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,563,153,163,87],"plugin_category":[50,59],"plugin_contributors":[87722],"plugin_business_model":[],"class_list":["post-27729","plugin","type-plugin","status-closed","hentry","plugin_tags-admin","plugin_tags-administration","plugin_tags-database","plugin_tags-images","plugin_tags-import","plugin_category-media","plugin_category-utilities-and-tools","plugin_contributors-strackerphil","plugin_committers-strackerphil"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fix-my-posts.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/fix-my-posts\/assets\/screenshot-1.png?rev=854361","caption":"<p>That's the plugin screen. Nothing fancy, just a button and a progress bar...<\/p>"},{"src":"https:\/\/ps.w.org\/fix-my-posts\/assets\/screenshot-2.png?rev=875571","caption":"<p><strong>New in 1.2<\/strong>: A repair log and a custom-repair hook!<\/p>"}],"raw_content":"<!--section=description-->\n<p><em>This plugin is meant for admins\/people that have basic understanding of how WordPress works.<\/em><\/p>\n\n<p>This is very useful after you import posts\/images from another CMS via direct SQL or when you somehow messed up your posts\/images.<\/p>\n\n<p>The Plugin will process your posts one-by-one and repair some basic things when it finds a problem:<\/p>\n\n<p><strong>General repair<\/strong><\/p>\n\n<ul>\n<li>Create a valid post_name for all posts<\/li>\n<\/ul>\n\n<p><strong>Image repair<\/strong><\/p>\n\n<ul>\n<li>Fix image-metadata<\/li>\n<li>Creates missing image-thumbnails<\/li>\n<\/ul>\n\n<p><em>(The plugin uses core WordPress methods to fix images. So the result is exactly same, as if you re-uploaded the images via WordPress)<\/em><\/p>\n\n<p><strong>Custom repair<\/strong><\/p>\n\n<p>Simply create an action handler to manually check each single post-item in the database and repair it if required!<\/p>\n\n<pre><code>&lt;?php\nadd_action( 'fix-the-post', 'your_handler' );\nfunction your_handler( $the_post ) {\n    $the_post-&gt;title = 'new title';\n    wp_update_post( $post );\n    echo 'Title updated!'; \/\/ You will see this in the repair-log on screen.\n}\n?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>fix-my-posts.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>You will get a new 'Fix my posts' menu-item in the 'Tools' menu<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Who is this plugin for?<\/dt>\n<dd><p>This plugin is meant for admins\/people that have basic understanding of how WordPress works.\nIt is intended to help admins with setting up or fixing their WordPress sites<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<ul>\n<li>Updated the image-correction code by implementing changes suggested by Fred (http:\/\/www.adam-makes-websites.com\/discoveries\/fixing_messed_up_image_attachments_in_wordpress_that_have_no_postmeta_values)<\/li>\n<li>New action-hook added for custom repair actions.<\/li>\n<li>Display repair-log to the user.<\/li>\n<li>Some smaller bugfixes and improvements.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Bugfix in the image-repair code.<\/li>\n<li>Added a cancel button to stop the current process-loop.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial version released.<\/li>\n<\/ul>","raw_excerpt":"Absolutely cool plugin to repair all posts and images after data-import or when your database is messed up!","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27729"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/strackerphil"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27729"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27729"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27729"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27729"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27729"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}