Plugin Directory

Changeset 1269965


Ignore:
Timestamp:
10/21/2015 01:54:18 AM (10 years ago)
Author:
stubgo
Message:

Add missing links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • square-bracket-hack-prevention/trunk/square-bracket-hack-prevention.php

    r1227600 r1269965  
    99 Licence: GPLv2 or later
    1010 */
     11
     12/**
     13 * Add links to WPSOS
     14 */
     15function wpsos_sbhp_set_plugin_meta( $links, $file ) {
     16
     17    if ( strpos( $file, 'square-bracket-hack-prevention.php' ) !== false ) {
     18
     19        $links = array_merge( $links, array( '<a href="http://www.wpsos.io/wordpress-plugin-square-bracket-hack-prevention/">' . __( 'Plugin details', 'simple-embed-code' ) . '</a>' ) );
     20        $links = array_merge( $links, array( '<a href="http://www.wpsos.io/">' . __( 'WPSOS - WordPress Security, Optimization & Speed', 'simple-embed-code' ) . '</a>' ) );
     21    }
     22    return $links;
     23}
     24add_filter( 'plugin_row_meta', 'wpsos_sbhp_set_plugin_meta', 10, 2 );
    1125
    1226//Check if the htaccess file is writeable
     
    6781    echo "<div class='error'>Redirect Bracket Requests requires .htaccess to be writeable. Please make the file writeable, and reactivate the plugin.</div>";
    6882}
     83
    6984?>
Note: See TracChangeset for help on using the changeset viewer.