[wp-hackers] Plugin Privacy Option (was Revisiting phone home and privacy)
Stephen Rider
wp-hackers at striderweb.com
Mon Dec 14 22:59:48 UTC 2009
Please note the code is untested -- I tossed that together based on an
existing plugin that does something different, but related. So run the
thing before posting it as working.
And actually, now that I look at it, I think I'm doing it wrong there.
Looks like it filters the data that's *returned* from the server, not the
data sent *to* the server.
Oops.
It's in the right direction, but needs a touch of work....
Stephen
On Mon, December 14, 2009 8:56 am, Jeremy Clarke wrote:
> On Sun, Dec 13, 2009 at 11:29 PM, Stephen Rider
> <wp-hackers at striderweb.com> wrote:
>> add_filter( 'option_update_plugins', 'filter_get_update_plugins' );
>> add_filter( 'transient_update_plugins', 'filter_get_update_plugins' );
>> // for cached data
>>
>> function filter_get_update_plugins( $data ) {
>> unset( $data->response['myplugin/myplugin.php'] );
>> return $data;
>> }
>
> Has anyone created a Codex page about this whole issue? It would be
> good to have this code there. Anyone with strong feelings about the
> issue want to put one together? It could have sections explaining each
> part of the update process and have ways of circumventing each:
> Sending url, sending server info, sending plugins list.
More information about the wp-hackers
mailing list