Changeset 8899 for trunk/wp-includes/rewrite.php
- Timestamp:
- 09/16/2008 12:35:56 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r8793 r8899 8 8 9 9 /** 10 * add_rewrite_rule() - Add a straight rewrite rule 11 * 12 * {@internal Missing Long Description}} 13 * 10 * Add a straight rewrite rule. 11 * 12 * @see WP_Rewrite::add_rule() for long description. 14 13 * @since 2.1.0 15 14 * 16 * @param unknown_type $regex17 * @param unknown_type $redirect18 * @param unknown_type $after15 * @param string $regex Regular Expression to match request against. 16 * @param string $redirect Page to redirect to. 17 * @param string $after Optional, default is 'bottom'. Where to add rule, can also be 'top'. 19 18 */ 20 19 function add_rewrite_rule($regex, $redirect, $after = 'bottom') { … … 24 23 25 24 /** 26 * add_rewrite_tag() - Add a new tag (like %postname%)27 * 28 * Warning: you must call this on init or earlier, otherwise 29 * the query var addition stuff won't work25 * Add a new tag (like %postname%). 26 * 27 * Warning: you must call this on init or earlier, otherwise the query var 28 * addition stuff won't work. 30 29 * 31 30 * @since 2.1.0 32 31 * 33 * @param unknown_type$tagname34 * @param unknown_type$regex32 * @param string $tagname 33 * @param string $regex 35 34 */ 36 35 function add_rewrite_tag($tagname, $regex) { … … 48 47 49 48 /** 50 * add_feed() - Add a new feed type like /atom1/ 51 * 52 * {@internal Missing Long Description}} 49 * Add a new feed type like /atom1/. 53 50 * 54 51 * @since 2.1.0 55 52 * 56 * @param unknown_type$feedname57 * @param unknown_type $function58 * @return unknown53 * @param string $feedname 54 * @param callback $function Callback to run on feed display. 55 * @return string Feed action name. 59 56 */ 60 57 function add_feed($feedname, $function) { … … 71 68 72 69 /** 73 * {@internal Missing Description}}70 * Endpoint Mask for Permalink. 74 71 * 75 72 * @since 2.1.0 … … 78 75 79 76 /** 80 * {@internal Missing Description}}77 * Endpoint Mask for Attachment. 81 78 * 82 79 * @since 2.1.0 … … 85 82 86 83 /** 87 * {@internal Missing Description}}84 * Endpoint Mask for date. 88 85 * 89 86 * @since 2.1.0 … … 92 89 93 90 /** 94 * {@internal Missing Description}}91 * Endpoint Mask for year 95 92 * 96 93 * @since 2.1.0 … … 99 96 100 97 /** 101 * {@internal Missing Description}}98 * Endpoint Mask for month. 102 99 * 103 100 * @since 2.1.0 … … 106 103 107 104 /** 108 * {@internal Missing Description}}105 * Endpoint Mask for day. 109 106 * 110 107 * @since 2.1.0 … … 113 110 114 111 /** 115 * {@internal Missing Description}}112 * Endpoint Mask for root. 116 113 * 117 114 * @since 2.1.0 … … 120 117 121 118 /** 122 * {@internal Missing Description}}119 * Endpoint Mask for comments. 123 120 * 124 121 * @since 2.1.0 … … 127 124 128 125 /** 129 * {@internal Missing Description}}126 * Endpoint Mask for searches. 130 127 * 131 128 * @since 2.1.0 … … 134 131 135 132 /** 136 * {@internal Missing Description}}133 * Endpoint Mask for categories. 137 134 * 138 135 * @since 2.1.0 … … 141 138 142 139 /** 143 * {@internal Missing Description}}140 * Endpoint Mask for tags. 144 141 * 145 142 * @since 2.3.0 … … 148 145 149 146 /** 150 * {@internal Missing Description}}147 * Endpoint Mask for authors. 151 148 * 152 149 * @since 2.1.0 … … 155 152 156 153 /** 157 * {@internal Missing Description}}154 * Endpoint Mask for pages. 158 155 * 159 156 * @since 2.1.0 … … 163 160 //pseudo-places 164 161 /** 165 * {@internal Missing Description}}162 * Endpoint Mask for default, which is nothing. 166 163 * 167 164 * @since 2.1.0 … … 170 167 171 168 /** 172 * {@internal Missing Description}}169 * Endpoint Mask for everything. 173 170 * 174 171 * @since 2.1.0 … … 177 174 178 175 /** 179 * add_rewrite_endpoint() - Add an endpoint, like /trackback/ 180 * 181 * {@internal Missing Long Description}} 176 * Add an endpoint, like /trackback/. 177 * 178 * The endpoints are added to the end of the request. So a request matching 179 * "/2008/10/14/my_post/myep/", the endpoint will be "/myep/". 182 180 * 183 181 * @since 2.1.0 182 * @see WP_Rewrite::add_endpoint() Parameters and more description. 183 * @uses $wp_rewrite 184 184 * 185 185 * @param unknown_type $name … … 192 192 193 193 /** 194 * _wp_filter_taxonomy_base() - filter the URL base for taxonomies, to remove any manually prepended /index.php/ 195 * @param string $base the taxonomy base that we're going to filter 194 * Filter the URL base for taxonomies. 195 * 196 * To remove any manually prepended /index.php/. 197 * 198 * @access private 199 * @since unknown (2.3.0?) 200 * @author Mark Jaquith 201 * 202 * @param string $base The taxonomy base that we're going to filter 196 203 * @return string 197 * @author Mark Jaquith198 204 */ 199 205 function _wp_filter_taxonomy_base( $base ) { … … 205 211 } 206 212 207 // examine a url (supposedly from this blog) and try to 208 // determine the post ID it represents. 209 /** 210 * url_to_postid() - Examine a url and try to determine the post ID it represents 211 * 212 * {@internal Missing Long Description}} 213 /** 214 * Examine a url and try to determine the post ID it represents. 213 215 * 214 216 * Checks are supposedly from the hosted site blog. … … 216 218 * @since 1.0.0 217 219 * 218 * @param unknown_type $url219 * @return unknown220 * @param string $url Permalink to check. 221 * @return int Post ID, or 0 on failure. 220 222 */ 221 223 function url_to_postid($url) { … … 316 318 317 319 /** 318 * {@internal Missing Short Description}} 319 * 320 * {@internal Missing Long Description}} 320 * WordPress Rewrite Component. 321 * 322 * The WordPress Rewrite class writes the rewrite module rules to the .htaccess 323 * file. It also handles parsing the request to get the correct setup for the 324 * WordPress Query class. 325 * 326 * The Rewrite along with WP class function as a front controller for WordPress. 327 * You can add rules to trigger your page view and processing using this 328 * component. The full functionality of a front controller does not exist, 329 * meaning you can't define how the template files load based on the rewrite 330 * rules. 321 331 * 322 332 * @since 1.5.0 … … 324 334 class WP_Rewrite { 325 335 /** 336 * Default permalink structure for WordPress. 337 * 338 * @since 1.5.0 339 * @access private 340 * @var string 341 */ 342 var $permalink_structure; 343 344 /** 345 * Whether to add trailing slashes. 346 * 347 * @since 2.2.0 348 * @access private 349 * @var bool 350 */ 351 var $use_trailing_slashes; 352 353 /** 354 * Customized or default category permalink base ( example.com/xx/tagname ). 355 * 356 * @since 1.5.0 357 * @access private 358 * @var string 359 */ 360 var $category_base; 361 362 /** 363 * Customized or default tag permalink base ( example.com/xx/tagname ). 364 * 365 * @since 2.3.0 366 * @access private 367 * @var string 368 */ 369 var $tag_base; 370 371 /** 372 * Permalink request structure for categories. 373 * 374 * @since 1.5.0 375 * @access private 376 * @var string 377 */ 378 var $category_structure; 379 380 /** 381 * Permalink request structure for tags. 382 * 383 * @since 2.3.0 384 * @access private 385 * @var string 386 */ 387 var $tag_structure; 388 389 /** 390 * Permalink author request base ( example.com/author/authorname ). 391 * 392 * @since 1.5.0 393 * @access private 394 * @var string 395 */ 396 var $author_base = 'author'; 397 398 /** 399 * Permalink request structure for author pages. 400 * 401 * @since 1.5.0 402 * @access private 403 * @var string 404 */ 405 var $author_structure; 406 407 /** 408 * Permalink request structure for dates. 409 * 410 * @since 1.5.0 411 * @access private 412 * @var string 413 */ 414 var $date_structure; 415 416 /** 417 * Permalink request structure for pages. 418 * 419 * @since 1.5.0 420 * @access private 421 * @var string 422 */ 423 var $page_structure; 424 425 /** 426 * Search permalink base ( example.com/search/query ). 427 * 428 * @since 1.5.0 429 * @access private 430 * @var string 431 */ 432 var $search_base = 'search'; 433 434 /** 435 * Permalink request structure for searches. 436 * 437 * @since 1.5.0 438 * @access private 439 * @var string 440 */ 441 var $search_structure; 442 443 /** 444 * Comments permalink base. 445 * 446 * @since 1.5.0 447 * @access private 448 * @var string 449 */ 450 var $comments_base = 'comments'; 451 452 /** 453 * Feed permalink base. 454 * 455 * @since 1.5.0 456 * @access private 457 * @var string 458 */ 459 var $feed_base = 'feed'; 460 461 /** 462 * Comments feed request structure permalink. 463 * 464 * @since 1.5.0 465 * @access private 466 * @var string 467 */ 468 var $comments_feed_structure; 469 470 /** 471 * Feed request structure permalink. 472 * 473 * @since 1.5.0 474 * @access private 475 * @var string 476 */ 477 var $feed_structure; 478 479 /** 480 * Front URL path. 481 * 482 * The difference between the root property is that WordPress might be 483 * located at example/WordPress/index.php, if permalinks are turned off. The 484 * index.php will be the front portion. If permalinks are turned on, this 485 * will most likely be empty or not set. 486 * 487 * @since 1.5.0 488 * @access private 489 * @var string 490 */ 491 var $front; 492 493 /** 494 * Root URL path to WordPress (without domain). 495 * 496 * The difference between front property is that WordPress might be located 497 * at example.com/WordPress/. The root is the 'WordPress/' portion. 498 * 499 * @since 1.5.0 500 * @access private 501 * @var string 502 */ 503 var $root = ''; 504 505 /** 506 * Permalink to the home page. 507 * 508 * @since 1.5.0 509 * @access public 510 * @var string 511 */ 512 var $index = 'index.php'; 513 514 /** 326 515 * {@internal Missing Description}} 327 516 * 328 517 * @since 1.5.0 329 518 * @access private 330 * @var unknown_type 331 */ 332 var $permalink_structure; 519 * @var string 520 */ 521 var $matches = ''; 522 523 /** 524 * Rewrite rules to match against the request to find the redirect or query. 525 * 526 * @since 1.5.0 527 * @access private 528 * @var array 529 */ 530 var $rules; 531 532 /** 533 * Additional rules added external to the rewrite class. 534 * 535 * Those not generated by the class, see add_rewrite_rule(). 536 * 537 * @since 2.1.0 538 * @access private 539 * @var array 540 */ 541 var $extra_rules = array(); // 542 543 /** 544 * Additional rules that belong at the beginning to match first. 545 * 546 * Those not generated by the class, see add_rewrite_rule(). 547 * 548 * @since 2.3.0 549 * @access private 550 * @var array 551 */ 552 var $extra_rules_top = array(); // 553 554 /** 555 * Rules that don't redirect to WP's index.php 556 * 557 * @since 2.1.0 558 * @access private 559 * @var array 560 */ 561 var $non_wp_rules = array(); // 333 562 334 563 /** 335 564 * {@internal Missing Description}} 336 565 * 337 * @since 2.2.0 338 * @access private 339 * @var bool 340 */ 341 var $use_trailing_slashes; 342 343 /** 344 * {@internal Missing Description}} 345 * 346 * @since 1.5.0 347 * @access private 348 * @var unknown_type 349 */ 350 var $category_base; 351 352 /** 353 * {@internal Missing Description}} 354 * 355 * @since 2.3.0 356 * @access private 357 * @var unknown_type 358 */ 359 var $tag_base; 360 361 /** 362 * {@internal Missing Description}} 363 * 364 * @since 1.5.0 365 * @access private 366 * @var unknown_type 367 */ 368 var $category_structure; 369 370 /** 371 * {@internal Missing Description}} 372 * 373 * @since 2.3.0 374 * @access private 375 * @var unknown_type 376 */ 377 var $tag_structure; 378 379 /** 380 * {@internal Missing Description}} 381 * 382 * @since 1.5.0 383 * @access private 384 * @var string 385 */ 386 var $author_base = 'author'; 387 388 /** 389 * {@internal Missing Description}} 390 * 391 * @since 1.5.0 392 * @access private 393 * @var unknown_type 394 */ 395 var $author_structure; 396 397 /** 398 * {@internal Missing Description}} 399 * 400 * @since 1.5.0 401 * @access private 402 * @var unknown_type 403 */ 404 var $date_structure; 405 406 /** 407 * {@internal Missing Description}} 408 * 409 * @since 1.5.0 410 * @access private 411 * @var unknown_type 412 */ 413 var $page_structure; 414 415 /** 416 * {@internal Missing Description}} 417 * 418 * @since 1.5.0 419 * @access private 420 * @var string 421 */ 422 var $search_base = 'search'; 423 424 /** 425 * {@internal Missing Description}} 426 * 427 * @since 1.5.0 428 * @access private 429 * @var unknown_type 430 */ 431 var $search_structure; 432 433 /** 434 * {@internal Missing Description}} 435 * 436 * @since 1.5.0 437 * @access private 438 * @var string 439 */ 440 var $comments_base = 'comments'; 441 442 /** 443 * {@internal Missing Description}} 444 * 445 * @since 1.5.0 446 * @access private 447 * @var string 448 */ 449 var $feed_base = 'feed'; 450 451 /** 452 * {@internal Missing Description}} 453 * 454 * @since 1.5.0 455 * @access private 456 * @var string 457 */ 458 var $comments_feed_structure; 459 460 /** 461 * {@internal Missing Description}} 462 * 463 * @since 1.5.0 464 * @access private 465 * @var string 466 */ 467 var $feed_structure; 468 469 /** 470 * {@internal Missing Description}} 471 * 472 * @since 1.5.0 473 * @access private 474 * @var unknown_type 475 */ 476 var $front; 477 478 /** 479 * {@internal Missing Description}} 480 * 481 * @since 1.5.0 482 * @access 483 * @var unknown_type 484 */ 485 var $root = ''; 486 487 /** 488 * {@internal Missing Description}} 489 * 490 * @since 1.5.0 491 * @access public 492 * @var string 493 */ 494 var $index = 'index.php'; 495 496 /** 497 * {@internal Missing Description}} 498 * 499 * @since 1.5.0 500 * @access private 501 * @var unknown_type 502 */ 503 var $matches = ''; 504 505 /** 506 * {@internal Missing Description}} 507 * 508 * @since 1.5.0 566 * @since 2.1.0 509 567 * @access private 510 568 * @var array 511 569 */ 512 var $rules; 513 514 /** 515 * {@internal Missing Description}} 516 * 517 * Those not generated by the class, see add_rewrite_rule() 518 * 519 * @since 2.1.0 570 var $extra_permastructs = array(); 571 572 /** 573 * Endpoints permalinks 574 * 575 * @since unknown 520 576 * @access private 521 577 * @var array 522 578 */ 523 var $extra_rules = array(); //524 525 /**526 * {@internal Missing Description}}527 *528 * Those not generated by the class, see add_rewrite_rule()529 *530 * @since 2.3.0531 * @access private532 * @var array533 */534 var $extra_rules_top = array(); //535 536 /**537 * Rules that don't redirect to WP's index.php538 *539 * @since 2.1.0540 * @access private541 * @var array542 */543 var $non_wp_rules = array(); //544 545 /**546 * {@internal Missing Description}}547 *548 * @since 2.1.0549 * @access private550 * @var unknown_type551 */552 var $extra_permastructs = array();553 579 var $endpoints; 554 580 … … 644 670 645 671 /** 646 * {@internal Missing Description}}672 * Supported default feeds. 647 673 * 648 674 * @since 1.5.0 … … 653 679 654 680 /** 655 * {@internal Missing Short Description}}656 * 657 * {@internal Missing Long Description}}658 * 659 * @since 1.5.0 660 * @access public 661 * 662 * @return unknown681 * Whether permalinks are being used. 682 * 683 * This can be either rewrite module or permalink in the HTTP query string. 684 * 685 * @since 1.5.0 686 * @access public 687 * 688 * @return bool True, if permalinks are enabled. 663 689 */ 664 690 function using_permalinks() { … … 670 696 671 697 /** 672 * {@internal Missing Short Description}}673 * 674 * {@internal Missing Long Description}}675 * 676 * @since 1.5.0 677 * @access public 678 * 679 * @return unknown698 * Whether permalinks are being used and rewrite module is not enabled. 699 * 700 * Means that permalink links are enabled and index.php is in the URL. 701 * 702 * @since 1.5.0 703 * @access public 704 * 705 * @return bool 680 706 */ 681 707 function using_index_permalinks() { … … 693 719 694 720 /** 695 * {@internal Missing Short Description}}696 * 697 * {@internal Missing Long Description}}698 * 699 * @since 1.5.0 700 * @access public 701 * 702 * @return unknown721 * Whether permalinks are being used and rewrite module is enabled. 722 * 723 * Using permalinks and index.php is not in the URL. 724 * 725 * @since 1.5.0 726 * @access public 727 * 728 * @return bool 703 729 */ 704 730 function using_mod_rewrite_permalinks() { … … 717 743 * @access public 718 744 * 719 * @param unknown_type $number720 * @return unknown745 * @param int $number Index number. 746 * @return string 721 747 */ 722 748 function preg_index($number) { … … 816 842 817 843 /** 818 * {@internal Missing Short Description}} 819 * 820 * {@internal Missing Long Description}} 821 * 822 * @since 1.5.0 823 * @access public 824 * 825 * @return unknown 844 * Retrieve date permalink structure, with year, month, and day. 845 * 846 * The permalink structure for the date, if not set already depends on the 847 * permalink structure. It can be one of three formats. The first is year, 848 * month, day; the second is day, month, year; and the last format is month, 849 * day, year. These are matched against the permalink structure for which 850 * one is used. If none matches, then the default will be used, which is 851 * year, month, day. 852 * 853 * Prevents post ID and date permalinks from overlapping. In the case of 854 * post_id, the date permalink will be prepended with front permalink with 855 * 'date/' before the actual permalink to form the complete date permalink 856 * structure. 857 * 858 * @since 1.5.0 859 * @access public 860 * 861 * @return bool|string False on no permalink structure. Date permalink structure. 826 862 */ 827 863 function get_date_permastruct() { … … 870 906 871 907 /** 872 * {@internal Missing Short Description}} 873 * 874 * {@internal Missing Long Description}} 875 * 876 * @since 1.5.0 877 * @access public 878 * 879 * @return unknown 908 * Retrieve the year permalink structure without month and day. 909 * 910 * Gets the date permalink structure and strips out the month and day 911 * permalink structures. 912 * 913 * @since 1.5.0 914 * @access public 915 * 916 * @return bool|string False on failure. Year structure on success. 880 917 */ 881 918 function get_year_permastruct() { … … 895 932 896 933 /** 897 * {@internal Missing Short Description}} 898 * 899 * {@internal Missing Long Description}} 900 * 901 * @since 1.5.0 902 * @access public 903 * 904 * @return unknown 934 * Retrieve the month permalink structure without day and with year. 935 * 936 * Gets the date permalink structure and strips out the day permalink 937 * structures. Keeps the year permalink structure. 938 * 939 * @since 1.5.0 940 * @access public 941 * 942 * @return bool|string False on failure. Year/Month structure on success. 905 943 */ 906 944 function get_month_permastruct() { … … 919 957 920 958 /** 921 * {@internal Missing Short Description}}922 * 923 * {@internal Missing Long Description}}924 * 925 * @since 1.5.0 926 * @access public 927 * 928 * @return unknown959 * Retrieve the day permalink structure with month and year. 960 * 961 * Keeps date permalink structure with all year, month, and day. 962 * 963 * @since 1.5.0 964 * @access public 965 * 966 * @return bool|string False on failure. Year/Month/Day structure on success. 929 967 */ 930 968 function get_day_permastruct() { … … 933 971 934 972 /** 935 * {@internal Missing Short Description}}973 * Retrieve the permalink structure for categories. 936 974 * 937 975 * {@internal Missing Long Description}} … … 940 978 * @access public 941 979 * 942 * @return unknown980 * @return bool|string False on failure. Category permalink structure. 943 981 */ 944 982 function get_category_permastruct() { … … 963 1001 964 1002 /** 965 * {@internal Missing Short Description}}1003 * Retrieve the permalink structure for tags. 966 1004 * 967 1005 * {@internal Missing Long Description}} … … 970 1008 * @access public 971 1009 * 972 * @return unknown1010 * @return bool|string False on failure. Tag permalink structure. 973 1011 */ 974 1012 function get_tag_permastruct() { … … 992 1030 } 993 1031 1032 /** 1033 * Retrieve extra permalink structure by name. 1034 * 1035 * @since unknown 1036 * @access public 1037 * 1038 * @param string $name Permalink structure name. 1039 * @return string|bool False if not found. Permalink structure string. 1040 */ 994 1041 function get_extra_permastruct($name) { 995 1042 if ( isset($this->extra_permastructs[$name]) ) … … 999 1046 1000 1047 /** 1001 * {@internal Missing Short Description}} 1002 * 1003 * {@internal Missing Long Description}} 1004 * 1005 * @since 1.5.0 1006 * @access public 1007 * 1008 * @return unknown 1048 * Retrieve the author permalink structure. 1049 * 1050 * The permalink structure is front property, author base, and finally 1051 * '/%author%'. Will set the author_structure property and then return it 1052 * without attempting to set the value again. 1053 * 1054 * @since 1.5.0 1055 * @access public 1056 * 1057 * @return string|bool False if not found. Permalink structure string. 1009 1058 */ 1010 1059 function get_author_permastruct() { … … 1024 1073 1025 1074 /** 1026 * {@internal Missing Short Description}} 1027 * 1028 * {@internal Missing Long Description}} 1029 * 1030 * @since 1.5.0 1031 * @access public 1032 * 1033 * @return unknown 1075 * Retrieve the search permalink structure. 1076 * 1077 * The permalink structure is root property, search base, and finally 1078 * '/%search%'. Will set the search_structure property and then return it 1079 * without attempting to set the value again. 1080 * 1081 * @since 1.5.0 1082 * @access public 1083 * 1084 * @return string|bool False if not found. Permalink structure string. 1034 1085 */ 1035 1086 function get_search_permastruct() { … … 1049 1100 1050 1101 /** 1051 * {@internal Missing Short Description}} 1052 * 1053 * {@internal Missing Long Description}} 1054 * 1055 * @since 1.5.0 1056 * @access public 1057 * 1058 * @return unknown 1102 * Retrieve the page permalink structure. 1103 * 1104 * The permalink structure is root property, and '%pagename%'. Will set the 1105 * page_structure property and then return it without attempting to set the 1106 * value again. 1107 * 1108 * @since 1.5.0 1109 * @access public 1110 * 1111 * @return string|bool False if not found. Permalink structure string. 1059 1112 */ 1060 1113 function get_page_permastruct() { … … 1074 1127 1075 1128 /** 1076 * {@internal Missing Short Description}} 1077 * 1078 * {@internal Missing Long Description}} 1079 * 1080 * @since 1.5.0 1081 * @access public 1082 * 1083 * @return unknown 1129 * Retrieve the feed permalink structure. 1130 * 1131 * The permalink structure is root property, feed base, and finally 1132 * '/%feed%'. Will set the feed_structure property and then return it 1133 * without attempting to set the value again. 1134 * 1135 * @since 1.5.0 1136 * @access public 1137 * 1138 * @return string|bool False if not found. Permalink structure string. 1084 1139 */ 1085 1140 function get_feed_permastruct() { … … 1099 1154 1100 1155 /** 1101 * {@internal Missing Short Description}} 1102 * 1103 * {@internal Missing Long Description}} 1104 * 1105 * @since 1.5.0 1106 * @access public 1107 * 1108 * @return unknown 1156 * Retrieve the comment feed permalink structure. 1157 * 1158 * The permalink structure is root property, comment base property, feed 1159 * base and finally '/%feed%'. Will set the comment_feed_structure property 1160 * and then return it without attempting to set the value again. 1161 * 1162 * @since 1.5.0 1163 * @access public 1164 * 1165 * @return string|bool False if not found. Permalink structure string. 1109 1166 */ 1110 1167 function get_comment_feed_permastruct() { … … 1151 1208 1152 1209 /** 1153 * Generate the rules from permalink structure 1210 * Generate the rules from permalink structure. 1154 1211 * 1155 1212 * {@internal Missing Long Description}} … … 1641 1698 } 1642 1699 1700 /** 1701 * {@internal Missing Short Description}} 1702 * 1703 * {@internal Missing Long Description}} 1704 * 1705 * @since unknown 1706 * @access public 1707 * 1708 * @param unknown_type $name 1709 * @param unknown_type $struct 1710 * @param unknown_type $with_front 1711 */ 1643 1712 function add_permastruct($name, $struct, $with_front = true) { 1644 1713 if ( $with_front ) … … 1648 1717 1649 1718 /** 1650 * {@internal Missing Short Description}} 1651 * 1652 * {@internal Missing Long Description}} 1719 * Remove rewrite rules and then recreate rewrite rules. 1720 * 1721 * Calls {@link WP_Rewrite::wp_rewrite_rules()} after removing the 1722 * 'rewrite_rules' option. If the function named 'save_mod_rewrite_rules' 1723 * exists, it will be called. 1653 1724 * 1654 1725 * @since 2.0.1 … … 1703 1774 1704 1775 /** 1705 * {@internal Missing Short Description}} 1706 * 1707 * {@internal Missing Long Description}} 1708 * 1709 * @since 1.5.0 1710 * @access public 1711 * 1712 * @param unknown_type $permalink_structure 1776 * Set the main permalink structure for the blog. 1777 * 1778 * Will update the 'permalink_structure' option, if there is a difference 1779 * between the current permalink structure and the parameter value. Calls 1780 * {@link WP_Rewrite::init()} after the option is updated. 1781 * 1782 * @since 1.5.0 1783 * @access public 1784 * 1785 * @param string $permalink_structure Permalink structure. 1713 1786 */ 1714 1787 function set_permalink_structure($permalink_structure) { … … 1720 1793 1721 1794 /** 1722 * {@internal Missing Short Description}} 1723 * 1724 * {@internal Missing Long Description}} 1725 * 1726 * @since 1.5.0 1727 * @access public 1728 * 1729 * @param unknown_type $category_base 1795 * Set the category base for the category permalink. 1796 * 1797 * Will update the 'category_base' option, if there is a difference between 1798 * the current category base and the parameter value. Calls 1799 * {@link WP_Rewrite::init()} after the option is updated. 1800 * 1801 * @since 1.5.0 1802 * @access public 1803 * 1804 * @param string $category_base Category permalink structure base. 1730 1805 */ 1731 1806 function set_category_base($category_base) { … … 1737 1812 1738 1813 /** 1739 * {@internal Missing Short Description}} 1740 * 1741 * {@internal Missing Long Description}} 1814 * Set the tag base for the tag permalink. 1815 * 1816 * Will update the 'tag_base' option, if there is a difference between the 1817 * current tag base and the parameter value. Calls 1818 * {@link WP_Rewrite::init()} after the option is updated. 1742 1819 * 1743 1820 * @since 2.3.0 1744 1821 * @access public 1745 1822 * 1746 * @param unknown_type $tag_base1823 * @param string $tag_base Tag permalink structure base. 1747 1824 */ 1748 1825 function set_tag_base( $tag_base ) { … … 1754 1831 1755 1832 /** 1756 * {@internal Missing Short Description}} 1757 * 1758 * {@internal Missing Long Description}} 1833 * PHP4 Constructor - Calls init(), which runs setup. 1759 1834 * 1760 1835 * @since 1.5.0
Note: See TracChangeset
for help on using the changeset viewer.