{"push_id":2631373030,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"c1d7b5ccceb4c4205d42429992eff380ac8252b4","before":"59ec880dbeef69d5c3427a77adf34201fb3bfbb3","commits":[{"sha":"c1d7b5ccceb4c4205d42429992eff380ac8252b4","author":{"name":"Michael D Adams","email":"718924aceca3803b20a30de7b10b64dc0b3a9336@gmail.com"},"message":"Unify WordPress Posts Widget with WP.com's version (#9597)\n\n* Move WordPress Posts Widget class to its own file\r\n\r\n* WordPress Posts Widget: Split out Base Class\r\n\r\nWordPress.com and Jetpack do different things around data fetching and\r\nstoring. This way, both can inherit common code and implement their\r\nspecific requirements.\r\n\r\nDependency Injection might be a bit cleaner, but it wouldn't be a huge win\r\nWe'd have to have an encapsulating class named\r\nJetpack_Display_Posts_Widget for backward compatibility anyway.\r\nWe'd be able to get rid of the mocking we need for testing, but it's\r\nalready there, so… :)\r\n\r\n* WordPress Posts Widget: Document Back-Compat Reqs\r\n\r\n* WordPress Posts Widget: Require Base Class\r\n\r\nIt helps to include the required files :)\r\n\r\n* WordPress Posts Widget: Fix Tests\r\n\r\nUpdate tests to match the code introduced in 69f5a302f45fed511a10ef49978889e6810dd783\r\n\r\n* WordPress Posts Widget: Fix Style Path\r\n\r\n* WordPress Posts Widgets: Return Newly Fetched Data\r\n\r\nReturn the newly fetched/processed data from `::update_instance()`.\r\n\r\n* WordPress Posts Widget: Revert Fetch API Changes\r\n\r\nPreviously, the code to actually fetch the data from the WordPress.com\r\nREST API was abstracted out so that WordPress.com could fetch the data\r\ndifferently than Jetpack.\r\n\r\nThis turns out not to be necessary. Put the fetching code back in to the\r\nbase class.\r\n\r\n* Revert \"WordPress Posts Widget: Fix Tests\"\r\n\r\nThis reverts commit a416e30dd47169710db886458ccce6421666b2cd.\r\n\r\nThese changes are no longer necessary now that the fetch API has been\r\nrestored to the original version.\r\n\r\n* WordPress Posts Widget: Don't Trust the Details ;)","distinct":true,"url":"https://api.github.com/repos/Automattic/jetpack/commits/c1d7b5ccceb4c4205d42429992eff380ac8252b4"}]}
{"actor":{"display_login":"eliorivero"}}