Plugin Directory

Changeset 1240480

Timestamp:
09/08/2015 09:57:10 AM (9 years ago)
Author:
eoigal
Message:

pass back the site url that is logged in wp options - can use this to streamline new plugin activation

Location:
akismet/trunk/views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/views/get.php

    r893039 r1240480  
    11<form name="akismet_activate" action="https://akismet.com/get/" method="POST" target="_blank">
    22    <input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
     3
    34    <input type="hidden" name="redirect" value="<?php echo isset( $redirect ) ? $redirect : 'plugin-signup'; ?>"/>
    45    <input type="submit" class="<?php echo isset( $classes ) && count( $classes ) > 0 ? implode( ' ', $classes ) : 'button button-primary';?>" value="<?php echo esc_attr( $text ); ?>"/>
  • akismet/trunk/views/start.php

    r1216862 r1240480  
    1010    <form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="right" target="_blank">
    1111        <input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
     12
    1213        <input type="hidden" name="auto-connect" value="<?php echo $akismet_user->ID;?>"/>
    1314        <input type="hidden" name="redirect" value="plugin-signup"/>
     
    2425    <form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="right" target="_blank">
    2526        <input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
     27
    2628        <input type="hidden" name="user_id" value="<?php echo $akismet_user->ID;?>"/>
    2729        <input type="hidden" name="redirect" value="upgrade"/>
Note: See TracChangeset for help on using the changeset viewer.