Changeset 34944
- Timestamp:
- 10/08/2015 05:11:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r34941 r34944 368 368 369 369 /** 370 * Whether permalinks are being used.370 * Determines whether permalinks are being used. 371 371 * 372 372 * This can be either rewrite module or permalink in the HTTP query string. … … 382 382 383 383 /** 384 * Whether permalinks are being used and rewrite module is not enabled.384 * Determins whether permalinks are being used and rewrite module is not enabled. 385 385 * 386 386 * Means that permalink links are enabled and index.php is in the URL. … … 389 389 * @access public 390 390 * 391 * @return bool 391 * @return bool Whether permalink links are enabled and index.php is in the URL. 392 392 */ 393 393 public function using_index_permalinks() { … … 400 400 401 401 /** 402 * Whether permalinks are being used and rewrite module is enabled.402 * Determines whether permalinks are being used and rewrite module is enabled. 403 403 * 404 404 * Using permalinks and index.php is not in the URL. … … 407 407 * @access public 408 408 * 409 * @return bool 409 * @return bool Whether permalink links are enabled and index.php is NOT in the URL. 410 410 */ 411 411 public function using_mod_rewrite_permalinks() { … … 414 414 415 415 /** 416 * Index for matches for usage in preg_*() functions.416 * Indexes for matches for usage in preg_*() functions. 417 417 * 418 418 * The format of the string is, with empty matches property value, '$NUM'. … … 442 442 443 443 /** 444 * Retrieve all page and attachments for pages URIs.444 * Retrieves all page and attachments for pages URIs. 445 445 * 446 446 * The attachments are for those that have pages as parents and will be … … 450 450 * @access public 451 451 * 452 * @global wpdb $wpdb 452 * @global wpdb $wpdb WordPress database abstraction object. 453 453 * 454 454 * @return array Array of page URIs as first element and attachment URIs as second element. … … 489 489 490 490 /** 491 * Retrieve all of the rewrite rules for pages.492 * 493 * @since 1.5.0 494 * @access public 495 * 496 * @return array 491 * Retrieves all of the rewrite rules for pages. 492 * 493 * @since 1.5.0 494 * @access public 495 * 496 * @return array Page rewrite rules. 497 497 */ 498 498 public function page_rewrite_rules() { … … 504 504 505 505 /** 506 * Retrieve date permalink structure, with year, month, and day.506 * Retrieves date permalink structure, with year, month, and day. 507 507 * 508 508 * The permalink structure for the date, if not set already depends on the … … 567 567 568 568 /** 569 * Retrieve the year permalink structure without month and day.569 * Retrieves the year permalink structure without month and day. 570 570 * 571 571 * Gets the date permalink structure and strips out the month and day … … 591 591 592 592 /** 593 * Retrieve the month permalink structure without day and with year.593 * Retrieves the month permalink structure without day and with year. 594 594 * 595 595 * Gets the date permalink structure and strips out the day permalink … … 614 614 615 615 /** 616 * Retrieve the day permalink structure with month and year.616 * Retrieves the day permalink structure with month and year. 617 617 * 618 618 * Keeps date permalink structure with all year, month, and day. … … 628 628 629 629 /** 630 * Retrieve the permalink structure for categories.630 * Retrieves the permalink structure for categories. 631 631 * 632 632 * If the category_base property has no value, then the category structure … … 662 662 663 663 /** 664 * Retrieve extra permalink structure by name.664 * Retrieves an extra permalink structure by name. 665 665 * 666 666 * @since 2.5.0 … … 681 681 682 682 /** 683 * Retrieve the author permalink structure.683 * Retrieves the author permalink structure. 684 684 * 685 685 * The permalink structure is front property, author base, and finally … … 707 707 708 708 /** 709 * Retrieve the search permalink structure.709 * Retrieves the search permalink structure. 710 710 * 711 711 * The permalink structure is root property, search base, and finally … … 733 733 734 734 /** 735 * Retrieve the page permalink structure.735 * Retrieves the page permalink structure. 736 736 * 737 737 * The permalink structure is root property, and '%pagename%'. Will set the … … 759 759 760 760 /** 761 * Retrieve the feed permalink structure.761 * Retrieves the feed permalink structure. 762 762 * 763 763 * The permalink structure is root property, feed base, and finally … … 785 785 786 786 /** 787 * Retrieve the comment feed permalink structure.787 * Retrieves the comment feed permalink structure. 788 788 * 789 789 * The permalink structure is root property, comment base property, feed … … 811 811 812 812 /** 813 * Add or updateexisting rewrite tags (e.g. %postname%).813 * Adds or updates existing rewrite tags (e.g. %postname%). 814 814 * 815 815 * If the tag already exists, replace the existing pattern and query for … … 840 840 841 841 /** 842 * Generate rewrite rules from a permalink structure.842 * Generates rewrite rules from a permalink structure. 843 843 * 844 844 * The main WP_Rewrite function for building the rewrite rule list. The … … 1143 1143 1144 1144 /** 1145 * Generate Rewrite rules with permalink structure and walking directory only.1145 * Generates rewrite rules with permalink structure and walking directory only. 1146 1146 * 1147 1147 * Shorten version of WP_Rewrite::generate_rewrite_rules() that allows for shorter … … 1163 1163 1164 1164 /** 1165 * Construct rewrite matches and queries from permalink structure.1165 * Constructs rewrite matches and queries from permalink structure. 1166 1166 * 1167 1167 * Runs the action 'generate_rewrite_rules' with the parameter that is an … … 1369 1369 1370 1370 /** 1371 * Retrieve the rewrite rules.1371 * Retrieves the rewrite rules. 1372 1372 * 1373 1373 * The difference between this method and WP_Rewrite::rewrite_rules() is that … … 1393 1393 1394 1394 /** 1395 * Retrieve mod_rewriteformatted rewrite rules to write to .htaccess.1395 * Retrieves mod_rewrite-formatted rewrite rules to write to .htaccess. 1396 1396 * 1397 1397 * Does not actually write to the .htaccess file, but creates the rules for … … 1492 1492 1493 1493 /** 1494 * Retrieve IIS7 URL Rewrite formatted rewrite rules to write to web.config file.1494 * Retrieves IIS7 URL Rewrite formatted rewrite rules to write to web.config file. 1495 1495 * 1496 1496 * Does not actually write to the web.config file, but creates the rules for … … 1542 1542 1543 1543 /** 1544 * Add a straight rewrite rule.1544 * Adds a straight rewrite rule. 1545 1545 * 1546 1546 * Any value in the $after parameter that isn't 'bottom' will be placed at … … 1580 1580 1581 1581 /** 1582 * Add a rule that doesn't redirect to index.php.1582 * Adds a rule that doesn't redirect to index.php. 1583 1583 * 1584 1584 * Can redirect to any place. … … 1595 1595 1596 1596 /** 1597 * Add an endpoint, like /trackback/.1597 * Adds an endpoint, like /trackback/. 1598 1598 * 1599 1599 * @since 2.1.0 … … 1626 1626 1627 1627 /** 1628 * Add a new permalink structure.1628 * Adds a new permalink structure. 1629 1629 * 1630 1630 * A permalink structure (permastruct) is an abstract definition of a set of rewrite rules; … … 1682 1682 1683 1683 /** 1684 * Remove rewrite rules and then recreate rewrite rules.1684 * Removes rewrite rules and then recreate rewrite rules. 1685 1685 * 1686 1686 * Calls WP_Rewrite::wp_rewrite_rules() after removing the 'rewrite_rules' option. … … 1762 1762 1763 1763 /** 1764 * Set the main permalink structure for the blog.1764 * Sets the main permalink structure for the site. 1765 1765 * 1766 1766 * Will update the 'permalink_structure' option, if there is a difference … … 1795 1795 1796 1796 /** 1797 * Set the category base for the category permalink.1797 * Sets the category base for the category permalink. 1798 1798 * 1799 1799 * Will update the 'category_base' option, if there is a difference between … … 1814 1814 1815 1815 /** 1816 * Set the tag base for the tag permalink.1816 * Sets the tag base for the tag permalink. 1817 1817 * 1818 1818 * Will update the 'tag_base' option, if there is a difference between the
Note: See TracChangeset
for help on using the changeset viewer.