[wp-trac] [WordPress Trac] #14179: Theme asking to update (theme with same name on WordPress.org)
WordPress Trac
noreply at wordpress.org
Mon Jan 17 11:27:41 UTC 2022
#14179: Theme asking to update (theme with same name on WordPress.org)
-------------------------------------------------+-------------------------
Reporter: design_dolphin | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Changes (by meloniq):
* keywords: has-patch needs-refresh needs-unit-tests needs-testing => has-
patch needs-unit-tests needs-testing
Comment:
Sample data for testing above patch using the Twenty Twenty theme
1. Add `Update URI` header to style.css file
`Update URI: https://meloniq.net/themes/twentytwenty/`
2. Add mock response
{{{#!php
<?php
function meloniq_update_mock( $update, $theme_data, $theme_stylesheet,
$locales ) {
$mock = array(
'theme' => 'twentytwenty',
'version' => '9.9',
'url' =>
'https://meloniq.net/themes/twentytwenty/',
'package' =>
'https://meloniq.net/themes/twentytwenty-9.9.zip',
'tested' => '5.9',
'requires_php' => '7.0',
'autoupdate' => false,
'translations' => array(),
);
return $mock;
}
add_filter( 'update_themes_meloniq.net', 'meloniq_update_mock', 10, 4 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14179#comment:84>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list