Changeset 10654
- Timestamp:
- 03/16/2016 07:39:50 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-avatars.php
r10641 r10654 1039 1039 $bp->template_message = false; 1040 1040 $bp->template_message_type = false; 1041 @setcookie( 'bp-message', false, time() - 1000, COOKIEPATH ); 1042 @setcookie( 'bp-message-type', false, time() - 1000, COOKIEPATH ); 1041 1042 @setcookie( 'bp-message', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 1043 @setcookie( 'bp-message-type', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 1043 1044 } 1044 1045 -
trunk/src/bp-core/bp-core-functions.php
r10647 r10654 1268 1268 1269 1269 // Send the values to the cookie for page reload display. 1270 @setcookie( 'bp-message', $message, time() + 60 * 60 * 24, COOKIEPATH );1271 @setcookie( 'bp-message-type', $type, time() + 60 * 60 * 24, COOKIEPATH );1270 @setcookie( 'bp-message', $message, time() + 60 * 60 * 24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 1271 @setcookie( 'bp-message-type', $type, time() + 60 * 60 * 24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 1272 1272 1273 1273 // Get BuddyPress. … … 1312 1312 1313 1313 if ( isset( $_COOKIE['bp-message'] ) ) { 1314 @setcookie( 'bp-message', false, time() - 1000, COOKIEPATH );1314 @setcookie( 'bp-message', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 1315 1315 } 1316 1316 1317 1317 if ( isset( $_COOKIE['bp-message-type'] ) ) { 1318 @setcookie( 'bp-message-type', false, time() - 1000, COOKIEPATH );1318 @setcookie( 'bp-message-type', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 1319 1319 } 1320 1320 } -
trunk/src/bp-groups/bp-groups-actions.php
r10487 r10654 123 123 unset( $bp->groups->completed_create_steps ); 124 124 125 setcookie( 'bp_new_group_id', false, time() - 1000, COOKIEPATH );126 setcookie( 'bp_completed_create_steps', false, time() - 1000, COOKIEPATH );125 setcookie( 'bp_new_group_id', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 126 setcookie( 'bp_completed_create_steps', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 127 127 128 128 $reset_steps = true; … … 253 253 254 254 // Reset cookie info. 255 setcookie( 'bp_new_group_id', $bp->groups->new_group_id, time()+60*60*24, COOKIEPATH );256 setcookie( 'bp_completed_create_steps', base64_encode( json_encode( $bp->groups->completed_create_steps ) ), time()+60*60*24, COOKIEPATH );255 setcookie( 'bp_new_group_id', $bp->groups->new_group_id, time()+60*60*24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 256 setcookie( 'bp_completed_create_steps', base64_encode( json_encode( $bp->groups->completed_create_steps ) ), time()+60*60*24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 257 257 258 258 // If we have completed all steps and hit done on the final step we … … 263 263 unset( $bp->groups->completed_create_steps ); 264 264 265 setcookie( 'bp_new_group_id', false, time() - 3600, COOKIEPATH );266 setcookie( 'bp_completed_create_steps', false, time() - 3600, COOKIEPATH );265 setcookie( 'bp_new_group_id', false, time() - 3600, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 266 setcookie( 'bp_completed_create_steps', false, time() - 3600, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 267 267 268 268 // Once we completed all steps, record the group creation in the activity stream. -
trunk/src/bp-messages/bp-messages-functions.php
r10585 r10654 336 336 */ 337 337 function messages_add_callback_values( $recipients, $subject, $content ) { 338 @setcookie( 'bp_messages_send_to', $recipients, time() + 60 * 60 * 24, COOKIEPATH );339 @setcookie( 'bp_messages_subject', $subject, time() + 60 * 60 * 24, COOKIEPATH );340 @setcookie( 'bp_messages_content', $content, time() + 60 * 60 * 24, COOKIEPATH );338 @setcookie( 'bp_messages_send_to', $recipients, time() + 60 * 60 * 24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 339 @setcookie( 'bp_messages_subject', $subject, time() + 60 * 60 * 24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 340 @setcookie( 'bp_messages_content', $content, time() + 60 * 60 * 24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 341 341 } 342 342 … … 347 347 */ 348 348 function messages_remove_callback_values() { 349 @setcookie( 'bp_messages_send_to', false, time() - 1000, COOKIEPATH );350 @setcookie( 'bp_messages_subject', false, time() - 1000, COOKIEPATH );351 @setcookie( 'bp_messages_content', false, time() - 1000, COOKIEPATH );349 @setcookie( 'bp_messages_send_to', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 350 @setcookie( 'bp_messages_subject', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 351 @setcookie( 'bp_messages_content', false, time() - 1000, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 352 352 } 353 353 -
trunk/src/bp-templates/bp-legacy/js/buddypress.js
r10379 r10654 266 266 /* Reset the page */ 267 267 jq.cookie( 'bp-activity-oldestpage', 1, { 268 path: '/' 268 path: '/', 269 secure: ( 'https:' === window.location.protocol ) 269 270 } ); 270 271 … … 439 440 if ( null === jq.cookie('bp-activity-oldestpage') ) { 440 441 jq.cookie('bp-activity-oldestpage', 1, { 441 path: '/' 442 path: '/', 443 secure: ( 'https:' === window.location.protocol ) 442 444 } ); 443 445 } … … 468 470 jq('#buddypress li.load-more').removeClass('loading'); 469 471 jq.cookie( 'bp-activity-oldestpage', oldest_page, { 470 path: '/' 472 path: '/', 473 secure: ( 'https:' === window.location.protocol ) 471 474 } ); 472 475 jq('#buddypress ul.activity-list').append(response.contents); … … 1757 1760 jq('#wp-admin-bar-logout, a.logout').on( 'click', function() { 1758 1761 jq.removeCookie('bp-activity-scope', { 1759 path: '/' 1762 path: '/', 1763 secure: ( 'https:' === window.location.protocol ) 1760 1764 }); 1761 1765 jq.removeCookie('bp-activity-filter', { 1762 path: '/' 1766 path: '/', 1767 secure: ( 'https:' === window.location.protocol ) 1763 1768 }); 1764 1769 jq.removeCookie('bp-activity-oldestpage', { 1765 path: '/' 1770 path: '/', 1771 secure: ( 'https:' === window.location.protocol ) 1766 1772 }); 1767 1773 … … 1769 1775 jq(objects).each( function(i) { 1770 1776 jq.removeCookie('bp-' + objects[i] + '-scope', { 1771 path: '/' 1777 path: '/', 1778 secure: ( 'https:' === window.location.protocol ) 1772 1779 } ); 1773 1780 jq.removeCookie('bp-' + objects[i] + '-filter', { 1774 path: '/' 1781 path: '/', 1782 secure: ( 'https:' === window.location.protocol ) 1775 1783 } ); 1776 1784 jq.removeCookie('bp-' + objects[i] + '-extras', { 1777 path: '/' 1785 path: '/', 1786 secure: ( 'https:' === window.location.protocol ) 1778 1787 } ); 1779 1788 }); … … 1851 1860 /* Reset the page */ 1852 1861 jq.cookie( 'bp-activity-oldestpage', 1, { 1853 path: '/' 1862 path: '/', 1863 secure: ( 'https:' === window.location.protocol ) 1854 1864 } ); 1855 1865 … … 1895 1905 /* Save the settings we want to remain persistent to a cookie */ 1896 1906 jq.cookie( 'bp-' + object + '-scope', scope, { 1897 path: '/' 1907 path: '/', 1908 secure: ( 'https:' === window.location.protocol ) 1898 1909 } ); 1899 1910 jq.cookie( 'bp-' + object + '-filter', filter, { 1900 path: '/' 1911 path: '/', 1912 secure: ( 'https:' === window.location.protocol ) 1901 1913 } ); 1902 1914 jq.cookie( 'bp-' + object + '-extras', extras, { 1903 path: '/' 1915 path: '/', 1916 secure: ( 'https:' === window.location.protocol ) 1904 1917 } ); 1905 1918 … … 1959 1972 if ( null !== scope ) { 1960 1973 jq.cookie( 'bp-activity-scope', scope, { 1961 path: '/' 1974 path: '/', 1975 secure: ( 'https:' === window.location.protocol ) 1962 1976 } ); 1963 1977 } 1964 1978 if ( null !== filter ) { 1965 1979 jq.cookie( 'bp-activity-filter', filter, { 1966 path: '/' 1980 path: '/', 1981 secure: ( 'https:' === window.location.protocol ) 1967 1982 } ); 1968 1983 } 1969 1984 jq.cookie( 'bp-activity-oldestpage', 1, { 1970 path: '/' 1985 path: '/', 1986 secure: ( 'https:' === window.location.protocol ) 1971 1987 } ); 1972 1988
Note: See TracChangeset
for help on using the changeset viewer.