WordPress.org

Plugin Directory

Changeset 1683469


Ignore:
Timestamp:
06/22/17 13:28:24 (6 months ago)
Author:
bobbingwide
Message:

oik-batchmove v2.4.3 - update to version on oik-plugins.com and GitHub
Now depends on oik v3.1
Tested with WordPress 4.8

Location:
oik-batchmove/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • oik-batchmove/trunk/admin/oik-activation.php

    r1307874 r1683469  
    1 <?php // (C) Copyright Bobbing Wide 2012-2015 
    2  
    3 /** 
    4  *  
    5  * @TODO This logic has been converted to a shared library in libs/oik-activation.php 
    6  */ 
     1<?php // (C) Copyright Bobbing Wide 2012-2016 
     2if ( !defined( "OIK_ACTIVATION_INCLUDED" ) ) { 
     3define( "OIK_ACTIVATION_INCLUDED", "3.1.0" ); 
     4 
    75 
    86if ( function_exists( "oik_plugin_lazy_activation" ) ) { 
     
    1311 * Produce an install plugin link 
    1412 * 
    15  * @param string $plugin 
    16  * @return string the install plugin link 
     13 * @param string $plugin plugin slug 
     14 *  
     15 * @return string link for the plugin install 
    1716 */ 
    1817function oik_plugin_install_plugin( $plugin ) { 
     
    3534 * @return string link to enable activation - which user must choose 
    3635 * We probably don't need plugin_status OR paged parameters 
    37   
     36 * 
    3837 * ` 
    3938   http://example.com/wp-admin/plugins.php? 
     
    5756}  
    5857  
    59 /**     
    60     $path = "update.php?action=install-plugin&plugin=$plugin"; 
    61     $url = admin_url( $path ); 
    62     $url = wp_nonce_url( $url, "install-plugin_oik" );  
    63     $link = '<a href="'; 
    64     $link .= $url; 
    65     $link .= '">Install oik</a>'; 
    66      
    67   $url = wp_nonce_url(self_admin_url('update.php?action=upgrade-plugin&plugin=' . $update_file), 'upgrade-plugin_' . $update_file); 
     58/** 
     59 * Create an Update plugin link 
     60 * 
     61 * Decided to use "Update" rather than " Upgrade".  
     62 * 
     63 * @param string $plugin the plugin slug 
     64 * @return string the update link 
    6865 */ 
    6966function oik_plugin_update_plugin( $plugin ) { 
     
    7471  $link .= $url; 
    7572  $link .= '">';  
    76   $link .= __(' Upgrade' ); 
     73  $link .= __( 'Update' ); 
    7774  $link .= " $plugin</a>"; 
    7875  return( $link ); 
     
    8178/**  
    8279 * Find out if we think the plugin is installed but not activated or not even installed 
     80 *  
    8381 * @param string $plugin - the plugin file name ( without plugin path info? ) 
    8482 * @return string - null if it's not installed or plugin to be activated 
     
    125123 
    126124/** 
     125 * Test if the plugin is activated 
     126 * 
    127127 * This won't work for Multisite since it doesn't find the network activated plugins 
    128128 * Even if it did, the admin may not be able to do anything. 
     
    231231 
    232232 
     233/** 
     234 * Simple implementation of plugin dependency logic 
     235 * 
     236 * @param string $plugin - the plugin file name 
     237 * @param string $dependencies - the list of plugins upon which this plugin is dependent 
     238 * @param string $callback - the callback function to invoke when the dependencies aren't satisfied 
     239 * 
     240 * Instead of calling this module during activation we invoke it in response to the  
     241 * after_plugin_row_$plugin_basename action. 
     242 *  
     243 * This gives us a bit more control over the information we provide. 
     244 * IF the oik plugin is not activated then oik_lazy_depends() will not be defined 
     245 *  
     246 */ 
     247if ( !function_exists( "oik_depends" ) ) { 
     248function oik_depends( $plugin=null, $dependencies="oik", $callback=null ) { 
     249  //bw_trace2(); 
     250  //if ( function_exists( "oik_load_plugins" )) { 
     251  //  oik_load_plugins(); 
     252  //}   
     253  if ( function_exists( "oik_lazy_depends" ) ) {   
     254    oik_lazy_depends( $plugin, $dependencies, $callback ); 
     255  } else { 
     256    if ( is_callable( $callback ) ) { 
     257      call_user_func( $callback, $plugin, $dependencies, "missing" ); 
     258    }   
     259  }   
     260} 
     261} 
     262 
     263 
    233264} // end else  
     265 
     266} // end if !defined()  
  • oik-batchmove/trunk/oik-batchmove.php

    r1307874 r1683469  
    22/* 
    33Plugin Name: oik batchmove 
    4 Plugin URI: http://www.oik-plugins.com/oik-plugins/oik-batchmove 
     4Plugin URI: https://www.oik-plugins.com/oik-plugins/oik-batchmove 
    55Description: Batch change post categories or published date incl. CRON rescheduling 
    6 Version: 2.4.1 
     6Version: 2.4.3 
    77Author: bobbingwide 
    8 Author URI: http://www.oik-plugins.com/author/bobbingwide 
     8Author URI: https://www.oik-plugins.com/author/bobbingwide 
    99License: GPLv2 or later 
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1111 
    12     Copyright 2013-2015 Bobbing Wide (email : herb@bobbingwide.com ) 
     12    Copyright 2013-2017 Bobbing Wide (email : herb@bobbingwide.com ) 
    1313 
    1414    This program is free software; you can redistribute it and/or modify 
     
    9999 * Implement "admin_notices" action for oik-batchmove" 
    100100 *  
    101  * Now depends on oik v2.5  
     101 * v2.4.2 now depends on oik v3.0.0 or higher  
     102 * v2.4.3 now depends on oik v3.1 or higher 
    102103 */  
    103104function oik_batchmove_activation() { 
     
    110111    } 
    111112  }   
    112   $depends = "oik:2.5"; 
     113  $depends = "oik:3.1"; 
    113114  oik_plugin_lazy_activation( __FILE__, $depends, "oik_plugin_plugin_inactive" ); 
    114115} 
  • oik-batchmove/trunk/readme.txt

    r1307985 r1683469  
    11=== oik-batchmove === 
    22Contributors: bobbingwide, vsgloik 
    3 Donate link: http://www.oik-plugins.com/oik/oik-donate/ 
     3Donate link: https://www.oik-plugins.com/oik/oik-donate/ 
    44Tags: category, republish, add, update, delete, scheduled republish 
    55Requires at least: 3.9 
    6 Tested up to: 4.4 
    7 Stable tag: 2.4.1 
     6Tested up to: 4.7.3 
     7Stable tag: 2.4.3 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3131 
    3232 
    33 == Installation == 
     33 
     34== Frequently Asked Questions == 
     35= Installation = 
    34361. Upload the contents of the oik-batchmove plugin to the `/wp-content/plugins/oik-batchmove' directory 
    35371. Activate the oik-batchmove plugin through the 'Plugins' menu in WordPress 
    36381. Visit Posts > Batch move or Oik options > Batch move to start changing post's categories or publication dates. 
    3739 
    38  
    39 == Frequently Asked Questions == 
    4040= How do I use it? =  
    4141 
     
    8585= oik-batchmove may not be fully functional = 
    8686I get a message that says: 
    87 *oik-batchmove may not be fully functional*. Please install and activate the required version of this plugin: oik version 2.5 
     87*oik-batchmove may not be fully functional*. Please install and activate the required version of this plugin: oik version 3.1 
    8888 
    8989This message is asking you to install and activate the oik base plugin. There should be a link: 
     
    100100 
    101101= Which version of oik do I need? = 
    102 The oik-batchmove plugin is dependent upon oik v2.5, or higher. 
     102The oik-batchmove plugin is dependent upon oik v3.1, or higher. 
    103103 
    104104= Which version of PHP do I need? = 
    105 Requires PHP 5.3 or higher. 
     105Requires PHP 5.3 or higher. oik-batchmove has been tested up to PHP 7.1 
    106106 
    107107= Are there similar plugins? =  
    108108Yes. Before developing oik-batchmove I tried these plugins.  
    109109 
    110 * [Batch-Move wp plugin](http://wordpress.org/plugins/batchmove/) 
    111 * [Bulk Move](http://wordpress.org/plugins/bulk-move/) 
     110* [Batch-Move wp plugin](https://wordpress.org/plugins/batchmove/) 
     111* [Bulk Move](https://wordpress.org/plugins/bulk-move/) 
    112112 
    113113At the time, they didn't satisfy my customer's original requirements. 
     
    115115I'm not aware of any other plugins that perform Scheduled republishing or Category republishing logic. 
    116116 
     117= Further reading = 
     118If you want to read more about the oik plugins then please visit the 
     119[oik plugin](https://www.oik-plugins.com/oik) **"the oik plugin - for often included key-information"** 
     120 
     121 
    117122== Screenshots == 
    118 1. Selection criteria: Choose the posts to alter 
     1231. Selection criteria Choose the posts to alter 
    1191242. Selected posts 
    1201253. Target category and Action 
     
    129134 
    130135== Upgrade Notice == 
     136= 2.4.3 ==  
     137Tested with WordPress 4.7.3. Tested with PHP 7.1. Now depends on oik v3.1 or higher. 
     138 
     139= 2.4.2 = 
     140Tested with WordPress 4.5. Now depends on oik v3.0 or higher 
     141 
    131142= 2.4.1 = 
    132143Tested with WordPress 4.4. Now depends on oik v2.5 or higher 
    133144 
    134145= 2.4 = 
    135 Upgrade if you want to: batch update meta data, perform WordPress SEO hide/unhide of posts 
     146Upgrade if you want to batch update meta data, perform WordPress SEO hide/unhide of posts 
    136147 
    137148= 2.3 =  
     
    171182 
    172183== Changelog == 
     184= 2.4.3 =  
     185* Changed: Now depends on oik v3.1 or higher 
     186* Tested: With WordPress 4.7.3 
     187* Tested: With PHP 7.1 
     188 
     189= 2.4.2 =  
     190* Tested: with WordPress 4.5.  
     191* Changed: Depends on oik v3.0.0 or higher 
     192 
    173193= 2.4.1 = 
    174194* Tested: with WordPress 4.4  
     
    238258= 0.1.0218 = 
    239259* Added: New code supports listing of posts and actions to add a category, remove a category or update (replace) or to republish a post 
    240  
    241 == Further reading == 
    242 If you want to read more about the oik plugins then please visit the 
    243 [oik plugin](http://www.oik-plugins.com/oik)  
    244 **"the oik plugin - for often included key-information"** 
    245  
Note: See TracChangeset for help on using the changeset viewer.