WordPress.org

Plugin Directory

Changeset 665975


Ignore:
Timestamp:
02/10/13 19:31:40 (5 years ago)
Author:
JonBishop
Message:

Fix errors in admin reported by user

Location:
socialize
Files:
36 added
3 edited

Legend:

Unmodified
Added
Removed
  • socialize/trunk/admin/socialize-admin.php

    r604326 r665975  
    142142    // On post edit, load metabox 
    143143    function socialize_metabox_admin() { 
    144         if (get_post_custom_keys($_GET['post']) && in_array('socialize', get_post_custom_keys($_GET['post']))) { 
     144        if (isset($_GET['post']) && get_post_custom_keys($_GET['post']) && in_array('socialize', get_post_custom_keys($_GET['post']))) { 
    145145            $socializemeta = explode(',', get_post_meta(intval($_GET['post']), 'socialize', true)); 
    146146        } else { 
     
    171171        $socializemeta = explode(',', $socialize_settings['sharemeta']); 
    172172 
    173         if (get_post_custom_keys($_GET['post'])) { 
     173        if (isset($_GET['post']) && get_post_custom_keys($_GET['post'])) { 
    174174            if (in_array('socialize', get_post_custom_keys($_GET['post']))) { 
    175175 
     
    241241        include_once(ABSPATH . WPINC . '/feed.php'); 
    242242        $content = ""; 
     243        $maxitems = 0; 
    243244        $rss = fetch_feed("http://feeds.feedburner.com/JonBishop"); 
    244245        if (!is_wp_error($rss)) { 
     
    308309                    Pages</p>'; 
    309310        foreach (get_post_types(array('public' => true, '_builtin' => false), 'objects') as $custom_post) { 
    310             $general_content .= '<p><input type="checkbox" name="socialize_display_custom_' . $custom_post->name . '" ' . checked(in_array($custom_post->name, $socialize_settings['socialize_display_custom']), true, false) . ' /> 
     311            $general_content .= '<p><input type="checkbox" name="socialize_display_custom_' . $custom_post->name . '" ' . checked(is_array($socialize_settings['socialize_display_custom']) && in_array($custom_post->name, $socialize_settings['socialize_display_custom']), true, false) . ' /> 
    311312                    ' . $custom_post->label . '</p>'; 
    312313        } 
  • socialize/trunk/readme.txt

    r604326 r665975  
    44Tags:  socialize, bookmark, post, posts, admin, page, digg, facebook, twitter, pinterest, buffer, bufferapp, delicious, digg, seo, button, google, sharing, stumbleupon, posting, saving, sharethis, share, bookmarking, shareaholic, sharing buttons menu, social, social bookmarking, reddit, sexysharing buttons, mu, sphinn, dzone, meta, linkedin, + one, +1, plus 1, plus one, addthis, addtoany, google plus, buddypress 
    55Requires at least: 2.7 
    6 Tested up to: 3.4.1 
    7 Stable tag: 2.2.1 
     6Tested up to: 3.5.1 
     7Stable tag: 2.2.2 
    88 
    99Provides an easy way to selectively add actionable social sharing buttons to your posts content or below the post in a 'Call To Action' box. 
     
    7979== Changelog == 
    8080 
    81 The current version is 2.2.1 (2012.09.26) 
     81The current version is 2.2.2 (2013.02.09) 
     82 
     83= 2.2.2 (2013.02.09) = 
     84* Fixed a few bugs in admin 
    8285 
    8386= 2.2.1 (2012.09.26) = 
  • socialize/trunk/socialize.php

    r604326 r665975  
    44  Plugin URI: http://www.jonbishop.com/downloads/wordpress-plugins/socialize/ 
    55  Description: Adds actionable social sharing buttons to your site 
    6   Version: 2.2.1 
     6  Version: 2.2.2 
    77  Author: Jon Bishop 
    88  Author URI: http://www.jonbishop.com 
     
    7272            $tmp = array( 
    7373                "socialize_installed" => "on", 
    74                 "socialize_version" => "25", 
     74                "socialize_version" => "26", 
    7575                "socialize_alert_bg" => "#FFEAA8", 
    7676                "socialize_alert_border_size" => "2px", 
Note: See TracChangeset for help on using the changeset viewer.