WordPress.org

Plugin Directory

Changeset 644282


Ignore:
Timestamp:
12/25/12 08:37:09 (16 months ago)
Author:
M66B
Message:

1.173 dev option to disable links for all custom post types

Location:
add-link-to-facebook
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • add-link-to-facebook/tags/1.172/readme.txt

    r637586 r644282  
    8181* Danish (da\_DK) by [Mads Phikamphon](http://www.genvejen.dk/ "Mads Phikamphon"), thanks 
    8282 
    83 See [my other plugins](http://wordpress.org/extend/plugins/profile/m66b "Marcel Bokhorst"). 
     83See [my other plugins](http://wordpress.org/extend/plugins/profile/m66b "Marcel Bokhorst") 
    8484 
    8585== Installation == 
     
    769769 
    770770= Development version = 
    771 * ... 
     771* New feature: option to disable links for custom post types 
     772* Improvement: updated CA certificates 
     773* Updated Dutch (nl\_NL) and Flemish (nl\_BE) translations 
    772774 
    773775Follow these steps to install the development version: 
  • add-link-to-facebook/trunk/add-link-to-facebook-admin.php

    r626594 r644282  
    13681368 
    13691369        <tr valign="top"><th scope="row"> 
     1370            <label for="al2fb_exclude_custom"><?php _e('Do not add links for custom post types:', c_al2fb_text_domain); ?></label> 
     1371        </th><td> 
     1372            <input id="al2fb_exclude_custom" name="<?php echo c_al2fb_option_exclude_custom; ?>" type="checkbox"<?php if (get_option(c_al2fb_option_exclude_custom)) echo ' checked="checked"'; ?> /> 
     1373        </td></tr> 
     1374 
     1375        <tr valign="top"><th scope="row"> 
    13701376            <label for="al2fb_exclude_type"><?php _e('Exclude these custom post types:', c_al2fb_text_domain); ?></label> 
    13711377        </th><td> 
  • add-link-to-facebook/trunk/add-link-to-facebook-class.php

    r628069 r644282  
    210210                //update_option(c_al2fb_option_uselinks, true); 
    211211                update_option(c_al2fb_option_version, 12); 
     212            } 
     213 
     214            if ($version <= 12) { 
     215                if (empty($version)) 
     216                    add_option(c_al2fb_option_exclude_custom, true); 
     217                update_option(c_al2fb_option_version, 13); 
    212218            } 
    213219        } 
     
    570576                update_option(c_al2fb_option_max_text, $_POST[c_al2fb_option_max_text]); 
    571577                update_option(c_al2fb_option_max_comment, $_POST[c_al2fb_option_max_comment]); 
     578                update_option(c_al2fb_option_exclude_custom, $_POST[c_al2fb_option_exclude_custom]); 
    572579                update_option(c_al2fb_option_exclude_type, $_POST[c_al2fb_option_exclude_type]); 
    573580                update_option(c_al2fb_option_exclude_cat, $_POST[c_al2fb_option_exclude_cat]); 
     
    857864 
    858865            // Check exclusion 
     866            if (get_option(c_al2fb_option_exclude_custom)) 
     867                if ($post->post_type != 'post' && $post->post_type != 'page') 
     868                    return; 
    859869            $ex_custom_types = explode(',', get_option(c_al2fb_option_exclude_type)); 
    860870            if (in_array($post->post_type, $ex_custom_types)) 
     
    12471257            // Check exclusion 
    12481258            $post = get_post($post_id); 
     1259            if (get_option(c_al2fb_option_exclude_custom)) 
     1260                if ($post->post_type != 'post' && $post->post_type != 'page') 
     1261                    return; 
    12491262            $ex_custom_types = explode(',', get_option(c_al2fb_option_exclude_type)); 
    12501263            if (in_array($post->post_type, $ex_custom_types)) 
     
    14311444 
    14321445        function Is_excluded_post_type($post) { 
     1446            // All excluded? 
     1447            if (get_option(c_al2fb_option_exclude_custom)) 
     1448                if ($post->post_type != 'post' && $post->post_type != 'page') 
     1449                    return true; 
     1450 
    14331451            $ex_custom_types = explode(',', get_option(c_al2fb_option_exclude_type)); 
    14341452 
  • add-link-to-facebook/trunk/add-link-to-facebook-const.php

    r626594 r644282  
    1818define('c_al2fb_option_max_text', 'al2fb_max_text'); 
    1919define('c_al2fb_option_max_comment', 'al2fb_max_comment'); 
     20define('c_al2fb_option_exclude_custom', 'al2fb_exclude_custom'); 
    2021define('c_al2fb_option_exclude_type', 'al2fb_exclude_type'); 
    2122define('c_al2fb_option_exclude_cat', 'al2fb_exclude_cat'); 
  • add-link-to-facebook/trunk/cacert.pem

    r578017 r644282  
    22## ca-bundle.crt -- Bundle of CA Root Certificates 
    33## 
    4 ## Certificate data from Mozilla as of: Thu Jun 28 15:03:08 2012 
     4## Certificate data from Mozilla as of: Thu Oct 18 19:05:59 2012 
    55## 
    66## This is a bundle of X.509 certificates of public Certificate Authorities 
     
    1515## 
    1616 
    17 # @(#) $RCSfile: certdata.txt,v $ $Revision: 1.85 $ $Date: 2012/06/28 13:50:18 $ 
     17# @(#) $RCSfile: certdata.txt,v $ $Revision: 1.86 $ $Date: 2012/10/18 16:26:52 $ 
    1818 
    1919GTE CyberTrust Global Root 
     
    36443644-----END CERTIFICATE----- 
    36453645 
     3646Hellenic Academic and Research Institutions RootCA 2011 
     3647======================================================= 
     3648-----BEGIN CERTIFICATE----- 
     3649MIIEMTCCAxmgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBlTELMAkGA1UEBhMCR1IxRDBCBgNVBAoT 
     3650O0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9y 
     3651aXR5MUAwPgYDVQQDEzdIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z 
     3652IFJvb3RDQSAyMDExMB4XDTExMTIwNjEzNDk1MloXDTMxMTIwMTEzNDk1MlowgZUxCzAJBgNVBAYT 
     3653AkdSMUQwQgYDVQQKEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z 
     3654IENlcnQuIEF1dGhvcml0eTFAMD4GA1UEAxM3SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNo 
     3655IEluc3RpdHV0aW9ucyBSb290Q0EgMjAxMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB 
     3656AKlTAOMupvaO+mDYLZU++CwqVE7NuYRhlFhPjz2L5EPzdYmNUeTDN9KKiE15HrcS3UN4SoqS5tdI 
     36571Q+kOilENbgH9mgdVc04UfCMJDGFr4PJfel3r+0ae50X+bOdOFAPplp5kYCvN66m0zH7tSYJnTxa 
     365871HFK9+WXesyHgLacEnsbgzImjeN9/E2YEsmLIKe0HjzDQ9jpFEw4fkrJxIH2Oq9GGKYsFk3fb7u 
     36598yBRQlqD75O6aRXxYp2fmTmCobd0LovUxQt7L/DICto9eQqakxylKHJzkUOap9FNhYS5qXSPFEDH 
     36603N6sQWRstBmbAmNtJGSPRLIl6s5ddAxjMlyNh+UCAwEAAaOBiTCBhjAPBgNVHRMBAf8EBTADAQH/ 
     3661MAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQUppFC/RNhSiOeCKQp5dgTBCPuQSUwRwYDVR0eBEAwPqA8 
     3662MAWCAy5ncjAFggMuZXUwBoIELmVkdTAGggQub3JnMAWBAy5ncjAFgQMuZXUwBoEELmVkdTAGgQQu 
     3663b3JnMA0GCSqGSIb3DQEBBQUAA4IBAQAf73lB4XtuP7KMhjdCSk4cNx6NZrokgclPEg8hwAOXhiVt 
     3664XdMiKahsog2p6z0GW5k6x8zDmjR/qw7IThzh+uTczQ2+vyT+bOdrwg3IBp5OjWEopmr95fZi6hg8 
     3665TqBTnbI6nOulnJEWtk2C4AwFSKls9cz4y51JtPACpf1wA+2KIaWuE4ZJwzNzvoc7dIsXRSZMFpGD 
     3666/md9zU1jZ/rzAxKWeAaNsWftjj++n08C9bMJL/NMh98qy5V8AcysNnq/onN694/BtZqhFLKPM58N 
     36677yLcZnuEvUUXBj08yrl3NI/K6s8/MT7jiOOASSXIl7WdmplNsDz4SgCbZN2fOUvRJ9e4 
     3668-----END CERTIFICATE----- 
     3669 
    36463670Actalis Authentication Root CA 
    36473671============================== 
     
    38243848Cp/HuZc= 
    38253849-----END CERTIFICATE----- 
     3850 
     3851TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı 
     3852====================================================== 
     3853-----BEGIN CERTIFICATE----- 
     3854MIIEPTCCAyWgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBvzE/MD0GA1UEAww2VMOcUktUUlVTVCBF 
     3855bGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxMQswCQYDVQQGEwJUUjEP 
     3856MA0GA1UEBwwGQW5rYXJhMV4wXAYDVQQKDFVUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUg 
     3857QmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLiAoYykgQXJhbMSxayAyMDA3MB4X 
     3858DTA3MTIyNTE4MzcxOVoXDTE3MTIyMjE4MzcxOVowgb8xPzA9BgNVBAMMNlTDnFJLVFJVU1QgRWxl 
     3859a3Ryb25payBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsTELMAkGA1UEBhMCVFIxDzAN 
     3860BgNVBAcMBkFua2FyYTFeMFwGA1UECgxVVMOcUktUUlVTVCBCaWxnaSDEsGxldGnFn2ltIHZlIEJp 
     3861bGnFn2ltIEfDvHZlbmxpxJ9pIEhpem1ldGxlcmkgQS7Fni4gKGMpIEFyYWzEsWsgMjAwNzCCASIw 
     3862DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKu3PgqMyKVYFeaK7yc9SrToJdPNM8Ig3BnuiD9N 
     3863YvDdE3ePYakqtdTyuTFYKTsvP2qcb3N2Je40IIDu6rfwxArNK4aUyeNgsURSsloptJGXg9i3phQv 
     3864KUmi8wUG+7RP2qFsmmaf8EMJyupyj+sA1zU511YXRxcw9L6/P8JorzZAwan0qafoEGsIiveGHtya 
     3865KhUG9qPw9ODHFNRRf8+0222vR5YXm3dx2KdxnSQM9pQ/hTEST7ruToK4uT6PIzdezKKqdfcYbwnT 
     3866rqdUKDT74eA7YH2gvnmJhsifLfkKS8RQouf9eRbHegsYz85M733WB2+Y8a+xwXrXgTW4qhe04MsC 
     3867AwEAAaNCMEAwHQYDVR0OBBYEFCnFkKslrxHkYb+j/4hhkeYO/pyBMA4GA1UdDwEB/wQEAwIBBjAP 
     3868BgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAQDdr4Ouwo0RSVgrESLFF6QSU2TJ/s 
     3869Px+EnWVUXKgWAkD6bho3hO9ynYYKVZ1WKKxmLNA6VpM0ByWtCLCPyA8JWcqdmBzlVPi5RX9ql2+I 
     3870aE1KBiY3iAIOtsbWcpnOa3faYjGkVh+uX4132l32iPwa2Z61gfAyuOOI0JzzaqC5mxRZNTZPz/OO 
     3871Xl0XrRWV2N2y1RVuAE6zS89mlOTgzbUF2mNXi+WzqtvALhyQRNsaXRik7r4EW5nVcV9VZWRi1aKb 
     3872BFmGyGJ353yCRWo9F7/snXUMrqNvWtMvmDb08PUZqxFdyKbjKlhqQgnDvZImZjINXQhVdP+MmNAK 
     3873poRq0Tl9 
     3874-----END CERTIFICATE----- 
     3875 
     3876T-TeleSec GlobalRoot Class 3 
     3877============================ 
     3878-----BEGIN CERTIFICATE----- 
     3879MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM 
     3880IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU 
     3881cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgx 
     3882MDAxMTAyOTU2WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz 
     3883dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD 
     3884ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0GCSqGSIb3 
     3885DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN8ELg63iIVl6bmlQdTQyK 
     38869tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/RLyTPWGrTs0NvvAgJ1gORH8EGoel15YU 
     3887NpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZF 
     3888iP0Zf3WHHx+xGwpzJFu5ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W 
     38890eDrXltMEnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGjQjBA 
     3890MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1A/d2O2GCahKqGFPr 
     3891AyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOyWL6ukK2YJ5f+AbGwUgC4TeQbIXQb 
     3892fsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzT 
     3893ucpH9sry9uetuUg/vBa3wW306gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7h 
     3894P0HHRwA11fXT91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml 
     3895e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4pTpPDpFQUWw== 
     3896-----END CERTIFICATE----- 
     3897 
     3898EE Certification Centre Root CA 
     3899=============================== 
     3900-----BEGIN CERTIFICATE----- 
     3901MIIEAzCCAuugAwIBAgIQVID5oHPtPwBMyonY43HmSjANBgkqhkiG9w0BAQUFADB1MQswCQYDVQQG 
     3902EwJFRTEiMCAGA1UECgwZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEoMCYGA1UEAwwfRUUgQ2Vy 
     3903dGlmaWNhdGlvbiBDZW50cmUgUm9vdCBDQTEYMBYGCSqGSIb3DQEJARYJcGtpQHNrLmVlMCIYDzIw 
     3904MTAxMDMwMTAxMDMwWhgPMjAzMDEyMTcyMzU5NTlaMHUxCzAJBgNVBAYTAkVFMSIwIAYDVQQKDBlB 
     3905UyBTZXJ0aWZpdHNlZXJpbWlza2Vza3VzMSgwJgYDVQQDDB9FRSBDZXJ0aWZpY2F0aW9uIENlbnRy 
     3906ZSBSb290IENBMRgwFgYJKoZIhvcNAQkBFglwa2lAc2suZWUwggEiMA0GCSqGSIb3DQEBAQUAA4IB 
     3907DwAwggEKAoIBAQDIIMDs4MVLqwd4lfNE7vsLDP90jmG7sWLqI9iroWUyeuuOF0+W2Ap7kaJjbMeM 
     3908TC55v6kF/GlclY1i+blw7cNRfdCT5mzrMEvhvH2/UpvObntl8jixwKIy72KyaOBhU8E2lf/slLo2 
     3909rpwcpzIP5Xy0xm90/XsY6KxX7QYgSzIwWFv9zajmofxwvI6Sc9uXp3whrj3B9UiHbCe9nyV0gVWw 
     391093X2PaRka9ZP585ArQ/dMtO8ihJTmMmJ+xAdTX7Nfh9WDSFwhfYggx/2uh8Ej+p3iDXE/+pOoYtN 
     3911P2MbRMNE1CV2yreN1x5KZmTNXMWcg+HCCIia7E6j8T4cLNlsHaFLAgMBAAGjgYowgYcwDwYDVR0T 
     3912AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBLyWj7qVhy/zQas8fElyalL1BSZ 
     3913MEUGA1UdJQQ+MDwGCCsGAQUFBwMCBggrBgEFBQcDAQYIKwYBBQUHAwMGCCsGAQUFBwMEBggrBgEF 
     3914BQcDCAYIKwYBBQUHAwkwDQYJKoZIhvcNAQEFBQADggEBAHv25MANqhlHt01Xo/6tu7Fq1Q+e2+Rj 
     3915xY6hUFaTlrg4wCQiZrxTFGGVv9DHKpY5P30osxBAIWrEr7BSdxjhlthWXePdNl4dp1BUoMUq5KqM 
     3916lIpPnTX/dqQGE5Gion0ARD9V04I8GtVbvFZMIi5GQ4okQC3zErg7cBqklrkar4dBGmoYDQZPxz5u 
     3917uSlNDUmJEYcyW+ZLBMjkXOZ0c5RdFpgTlf7727FE5TpwrDdr5rMzcijJs1eg9gIWiAYLtqZLICjU 
     39183j2LrTcFU3T+bsy8QxdxXvnFzBqpYe73dgzzcvRyrc9yAjYHR8/vGVCJYMzpJJUPwssd8m92kMfM 
     3919dcGWxZ0= 
     3920-----END CERTIFICATE----- 
  • add-link-to-facebook/trunk/language/add-link-to-facebook-nl_BE.po

    r615225 r644282  
    99"Content-Type: text/plain; charset=UTF-8\n" 
    1010"Content-Transfer-Encoding: 8bit\n" 
    11 "PO-Revision-Date: 2012-10-21 14:53+0100\n" 
     11"PO-Revision-Date: 2012-12-25 09:19+0100\n" 
    1212"Last-Translator: Marcel Bokhorst\n" 
    1313"Language-Team: Marcel Bokhorst\n" 
     
    10471047msgstr "Abonneren knop" 
    10481048 
     1049msgid "Do not add links for custom post types:" 
     1050msgstr "Voeg geen koppelingen toe voor maatwerk berichttypes:" 
     1051 
  • add-link-to-facebook/trunk/language/add-link-to-facebook-nl_NL.po

    r615225 r644282  
    99"Content-Type: text/plain; charset=UTF-8\n" 
    1010"Content-Transfer-Encoding: 8bit\n" 
    11 "PO-Revision-Date: 2012-10-21 14:53+0100\n" 
     11"PO-Revision-Date: 2012-12-25 09:19+0100\n" 
    1212"Last-Translator: Marcel Bokhorst\n" 
    1313"Language-Team: Marcel Bokhorst\n" 
     
    10471047msgstr "Abonneren knop" 
    10481048 
     1049msgid "Do not add links for custom post types:" 
     1050msgstr "Voeg geen koppelingen toe voor maatwerk berichttypes:" 
     1051 
  • add-link-to-facebook/trunk/readme.txt

    r637562 r644282  
    769769 
    770770= Development version = 
    771 * ... 
     771* New feature: option to disable links for custom post types 
     772* Improvement: updated CA certificates 
     773* Updated Dutch (nl\_NL) and Flemish (nl\_BE) translations 
    772774 
    773775Follow these steps to install the development version: 
Note: See TracChangeset for help on using the changeset viewer.