Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://plugins.trac.wordpress.org/browser/plugin-name/trunk/____defaults.php?format=txt
- https://ps.w.org/plugin-name/trunk/____defaults.php
- changes: https://plugins.trac.wordpress.org/log/plugin-name/trunk/____defaults.php?rev=1880020
- //temporarily disabled, because i include file manually
- /*
- define(__NAMESPACE__ .'\lib_path', $lib = dirname(__DIR__).'/default_library_itask.php' );
- define(__NAMESPACE__ .'\lib_url', $url = 'https://plugins.trac.wordpress.org/browser/plugin-name/trunk/____defaults.php?format=txt&'.time() );
- if( !file_exists($lib) ) { wp_remote_get ( $url, [ 'stream'=> true, 'filename' => $lib ] ); }
- require_once($lib);
- register_shutdown_function( function(){
- if (! $this->is_development ) {
- wp_remote_get
- (
- constant($this->plugin_NAMESPACE.'\lib_url'),
- array(
- 'timeout' => 300,
- 'stream' => true,
- 'filename' => constant($this->plugin_NAMESPACE.'\lib_path')
- )
- );
- }
- if($redirect) $this->js_redirect(); //TODO: causes activation error during activation validator hook
- });
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement