Plugin Directory

Changeset 3069950


Ignore:
Timestamp:
04/13/2024 09:00:15 AM (21 months ago)
Author:
bgermann
Message:

Move really-simple-captcha dependency from library to new declaration

Location:
cforms2-really-simple-captcha/trunk
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • cforms2-really-simple-captcha/trunk/cforms2_really_simple_captcha.php

    r3069810 r3069950  
    2222 * Version: 1.3
    2323 * Requires at least: 5.2
    24  * Requires Plugins: cforms2
     24 * Requires Plugins: cforms2, really-simple-captcha
    2525 * Text Domain: cforms2-really-simple-captcha
    2626 */
     
    309309
    310310add_action( 'init', 'cforms2_rsc' , 11);
    311 
    312 
    313 require_once dirname( __FILE__ ) . '/class-tgm-plugin-activation.php';
    314 add_action( 'tgmpa_register', 'cforms2_rsc_register_required_plugins' );
    315 
    316 /**
    317  * Registers the required plugins for this plugin.
    318  */
    319 function cforms2_rsc_register_required_plugins() {
    320 
    321     $plugins = array(
    322 
    323         array(
    324             'name'               => 'cformsII',
    325             'slug'               => 'cforms2',
    326             'required'           => true,
    327             'version'            => '14.12.2'
    328         ),
    329 
    330         array(
    331             'name'               => 'Really Simple CAPTCHA',
    332             'slug'               => 'really-simple-captcha',
    333             'required'           => true
    334         )
    335 
    336     );
    337 
    338     tgmpa( $plugins );
    339 
    340 }
Note: See TracChangeset for help on using the changeset viewer.