WordPress.org

Making WordPress.org

Changeset 6195


Ignore:
Timestamp:
12/01/17 01:48:33 (2 weeks ago)
Author:
dd32
Message:

Plugin Directory: Add the plugin_author field to the update-api source data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-api-update-updater.php

    r5841 r6195  
    6868            'version'         => get_post_meta( $post->ID, 'version', true ), 
    6969            'stable_tag'      => get_post_meta( $post->ID, 'stable_tag', true ), 
    70             'plugin_name'     => get_post_meta( $post->ID, 'header_name', true ), 
    71             'plugin_name_san' => sanitize_title_with_dashes( get_post_meta( $post->ID, 'header_name', true ) ), 
     70            'plugin_name'     => strip_tags( get_post_meta( $post->ID, 'header_name', true ) ), 
     71            'plugin_name_san' => sanitize_title_with_dashes( strip_tags( get_post_meta( $post->ID, 'header_name', true ) ) ), 
     72            'plugin_author'   => strip_tags( get_post_meta( $post->ID, 'header_author', true ) ), 
    7273            'tested'          => get_post_meta( $post->ID, 'tested', true ), 
    7374            'requires'        => get_post_meta( $post->ID, 'requires', true ), 
     
    122123  `plugin_name` varchar(255) NOT NULL DEFAULT '', 
    123124  `plugin_name_san` varchar(255) NOT NULL DEFAULT '', 
     125  `plugin_author` varchar(255) NOT NULL DEFAULT '', 
    124126  `tested` varchar(128) NOT NULL DEFAULT '', 
    125127  `requires` varchar(128) NOT NULL DEFAULT '', 
Note: See TracChangeset for help on using the changeset viewer.